#! /usr/bin/make -f PACKDIR=debian/manpages-es-extra export PACKDIR build: # Builds the binary package. # empty clean: # Undoes the effect of `make -f debian.rules build'. dh_testdir dh_clean -find man? -name '*~' -exec rm {} \; binary-arch: binary-indep: checkroot build # Makes a binary package. dh_testdir dh_testroot dh_installdirs $(MAKE) MANDIR=$(PACKDIR)/usr/share/man/es # undocumented is provided by the manpages package -find $(PACKDIR) -name "undocumented.7" -exec rm -f \{\} \; # same for rpncalc -find $(PACKDIR) -name "rpncalc.1" -exec rm -f \{\} \; # and for fastboot and fasthalt since they do not exist in Debian -find $(PACKDIR) -name "fastboot.8" -exec rm -f \{\} \; -find $(PACKDIR) -name "fasthalt.8" -exec rm -f \{\} \; # And for mc -find $(PACKDIR) -name "mc.1" -exec rm -f \{\} \; # And for login -find $(PACKDIR) -name "login.1" -exec rm -f \{\} \; -find $(PACKDIR) -name "passwd.1" -exec rm -f \{\} \; -find $(PACKDIR) -name "su.1" -exec rm -f \{\} \; -find $(PACKDIR) -name "newgrp.1" -exec rm -f \{\} \; -find $(PACKDIR) -name "vigr.8" -exec rm -f \{\} \; -find $(PACKDIR) -name "vipw.8" -exec rm -f \{\} \; # those are provided by manpages-es -find $(PACKDIR) -name "dlclose.3" -exec rm \{\} \; -find $(PACKDIR) -name "dlerror.3" -exec rm \{\} \; -find $(PACKDIR) -name "dlopen.3" -exec rm \{\} \; -find $(PACKDIR) -name "dlsym.3" -exec rm \{\} \; -find $(PACKDIR) -name "acct.5" -exec rm \{\} \; -find $(PACKDIR) -name "host.conf.5" -exec rm \{\} \; -find $(PACKDIR) -name "resolv.conf.5" -exec rm \{\} \; -find $(PACKDIR) -name "resolver.5" -exec rm \{\} \; -find $(PACKDIR) -name "ld.so.8" -exec rm \{\} \; -find $(PACKDIR) -name "fstab.5" -exec rm \{\} \; # these are obsolete, no sense distributing very old documentation: -find $(PACKDIR) -name "mount.8" -exec rm \{\} \; -find $(PACKDIR) -name "umount.8" -exec rm \{\} \; # There are probably many others that don't..... not easy to trace however. # will try with apt-file in the future: # Something along the lines of # for each manpage # if apt-file can find a package holding such a file and it's not us # remove (as it is now upstream) # done dh_installchangelogs dh_installdocs README LEEME.extra PAQUETES PROYECTO dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb define checkdir test -d man2 -a -f debian/rules endef # Below here is fairly generic really binary: binary-indep binary-arch checkroot: $(checkdir) test root = "`whoami`" .PHONY: binary binary-arch binary-indep clean checkroot