1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
# This rules files maintained by Eduardo M. Maan <macan@debian.org>
# It was inspired by manpages-de's rules
# thanks to Martin for that
# This one is GPL software
SHELL=/bin/bash
export DH_COMPAT=2
installbin = install -g root -o root -m 755
installdoc = install -g root -o root -m 644
build:
dh_testdir
touch build
clean:
dh_testdir
-rm -f build
-$(MAKE) clean
-rm -f `find . -name "*~"`
dh_clean
binary-indep: build
# There are no architecture-independent files to be uploaded
# generated by this package. If there were any they would be
# made here.
binary-arch: build
dh_testroot
dh_testdir
dh_clean -k
dh_installdocs
dh_installchangelogs
for sect in `seq 1 8`; do \
if [ -d man$$sect ]; then \
$(installbin) -d debian/tmp/usr/share/man/pt/man$$sect; \
for file in `(cd man$$sect && ls *.$$sect*)`; do \
$(installdoc) man$$sect/$$file debian/tmp/usr/share/man/pt/man$$sect/$$file; \
done; \
fi; \
done
dh_movefiles
dh_fixperms
dh_compress
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean checkroot
|