#!/usr/bin/make -f # Rather paranoid than sorry. Make the shell exit with an error if an # untested command fails. SHELL+= -e #export DH_VERBOSE=1 build: $(checkdir) ./configure --prefix=/usr --with-gpg-path=/usr/bin/gpg $(MAKE) touch build clean: checkroot $(checkdir) -rm -f build -if [ -e Makefile ]; then $(MAKE) distclean; fi # -cd debian && rm -rf tmp files* substvars *debhelper dh_clean binary-indep: checkroot build # We have nothing to do binary-arch: checkroot build $(checkdir) -rm -rf debian/tmp $(MAKE) DESTDIR=`pwd`/debian/pgpgpg install dh_installdocs README BUGS TODO dh_installchangelogs NEWS dh_installman pgpgpg.1 dh_strip --no-ddebs dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_builddeb define checkdir test -f debian/rules endef binary: binary-arch checkroot: test root = "`whoami`" .PHONY: binary binary-arch binary-indep clean checkroot