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
|
#!/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
|