#!/usr/bin/make -f #export DH_VERBOSE=1 include /usr/share/GNUstep/debian/config.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all ifdef docs projects := SERIAL_SUBDIRECTORIES="Source Tools Documentation" else projects := SERIAL_SUBDIRECTORIES="Source Tools" endif %: dh $@ override_dh_auto_build: rm -rf libtool Tests/obj Tests/DBusKitTests.bundle dh_auto_build -- $(optim) $(verbose) $(projects) \ $(shell dpkg-buildflags --export=cmdline) cp debian/libdbuskit-dev.install.in debian/libdbuskit-dev.install ifdef docs cp debian/libdbuskit-dev.links.in debian/libdbuskit-dev.links else # Remove "usr/share" if "nodoc" is in DEB_BUILD_OPTIONS sed -i '$$d' debian/libdbuskit-dev.install endif override_dh_auto_install: dh_auto_install -- $(projects) ifdef docs $(RM) -r debian/tmp$(GNUSTEP_SYSTEM_DOC)/Developer/DBusKit/ReleaseNotes endif override_dh_clean: rm -rf Tests/obj Tests/DBusKitTests.bundle dh_clean libtool execute_before_dh_link: gsdh_gnustep --no-move