#!/usr/bin/make -f # -*- makefile -*- export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 -include /usr/share/dpkg/buildflags.mk %: dh $@ override_dh_auto_build: dh_auto_build -- LDFLAGS+=-Wl,--as-needed override_dh_auto_install: dh_auto_install -- pdfchaindocdir=/usr/share/doc # remove not needed doc files: rm -v $(CURDIR)/debian/pdfchain/usr/share/doc/pdfchain/ChangeLog # installed by dh_installchangelogs rm -v $(CURDIR)/debian/pdfchain/usr/share/doc/pdfchain/COPYING rm -v $(CURDIR)/debian/pdfchain/usr/share/doc/pdfchain/INSTALL rm -v $(CURDIR)/debian/pdfchain/usr/share/doc/pdfchain/NEWS rm -v $(CURDIR)/debian/pdfchain/usr/share/doc/pdfchain/README