1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -pie
export DEB_CFLAGS_MAINT_APPEND = -fPIE
%:
dh $@
override_dh_auto_clean:
dh_auto_clean
rm -f $(CURDIR)/debian/hcxtools.manpages
rm -f $(CURDIR)/debian/*.1
override_dh_auto_install:
mkdir -p $(CURDIR)/debian/hcxtools/usr/bin
$(MAKE) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/hcxtools
for binary in $(CURDIR)/debian/hcxtools/usr/bin/* ; do \
manpage=`basename $$binary`; \
/usr/bin/help2man -n "hcx tools set" -N $$binary > $(CURDIR)/debian/$$manpage.1; \
echo debian/$$manpage.1 >> $(CURDIR)/debian/hcxtools.manpages; \
done
|