#! /usr/bin/make -f clean: dh_testdir dh_testroot dh_clean SETUP.cfg perf.log [ ! -f Makefile ] || $(MAKE) distclean rm -f configure-stamp build-stamp configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \ --with-awk=/usr/bin/awk --with-sendmail=/usr/sbin/sendmail \ --with-shell=/bin/bash touch configure-stamp build: configure-stamp build-stamp build-stamp: dh_testdir # Add here commands to compile the package. $(MAKE) touch build-stamp binary: binary-arch binary-indep binary-arch: build binary-indep: build dh_testdir dh_testroot dh_clean # The upstream Makefile is BSD-specific (e.g. refers to make when it # should refer to $${.MAKE}), and doesn't create all the necessary # directories (e.g. /usr/man), so it's easier to do this by hand. dh_installdirs cp -p SETUP debian/apsfilter/usr/sbin/apsfilterconfig cp -a --parents bin/* setup/* driver/* template/README \ template/apsfilterrc \ debian/apsfilter/usr/share/apsfilter rm debian/apsfilter/usr/share/apsfilter/bin/*.in mv debian/apsfilter/usr/share/apsfilter/bin/aps2file \ debian/apsfilter/usr/share/apsfilter/bin/apspreview \ debian/apsfilter/usr/share/apsfilter/bin/apsfilter-bug \ debian/apsfilter/usr/bin cp -p uniprint/*.upp debian/apsfilter/usr/share/ghostscript/common dh_installdebconf # If you think more stuff should be installed, first bug upstream to # change the Makefile -- forks are bad, okay? dh_installdocs ANNOUNCE FAQ HOWTO-BUGREPORTS \ doc/README.TeX doc/handbook.html doc/paper dh_installman man/*.? dh_installchangelogs ChangeLog # FHS compliance requires some layout changes, but these are made # transparent with symlinks. dh_link \ usr/sbin/apsfilterconfig usr/share/apsfilter/SETUP \ etc/apsfilter/SETUP.cfg usr/share/apsfilter/SETUP.cfg \ var/lib/apsfilter/perf.log usr/share/apsfilter/perf.log \ usr/share/man/man1/apsfilter.1 usr/share/man/man8/apsfilterconfig.8 dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb .PHONY: clean build binary binary-arch binary-indep