#!/usr/bin/make -f

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND = -I$(GNUSTEP_SYSTEM_HEADERS)

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -Smakefile -- -f Makefile.linux OBJCC=$(OBJC) AR=$(AR)

override_dh_auto_clean:
	dh_auto_clean -Smakefile -- -f Makefile.linux clean

override_dh_auto_test:
	./debian/tests/detector

override_dh_gencontrol:
	dh_gencontrol -- \
	  -Vgnustep:Depends=$$(dpkg-query -f '$${Provides}' -W libgnustep-base-dev)
