#!/usr/bin/make -f
#DH_VERBOSE = 1

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	cp debian/libperformance-dev.install.in \
	  debian/libperformance-dev.install
ifdef docs
	cp debian/libperformance-dev.links.in debian/libperformance-dev.links
else
# Remove /usr/share if "nodoc" is in DEB_BUILD_OPTIONS.
	sed -i '$$d' debian/libperformance-dev.install
endif
	dh_auto_build -- $(optim) $(verbose) $(docs) \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_auto_install:
	dh_auto_install -- $(verbose) $(docs)

override_dh_auto_clean:
	dh_auto_clean -- $(docs)

execute_before_dh_link:
	gsdh_gnustep

override_dh_strip:
	dh_strip --dbgsym-migration='libperformance0.5-dbg (<< 0.6.0-1~)'
