#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1

%:
	dh $@

override_dh_clean:
	if test -e README.md; then rm -rf README.md; fi
	if test -e config.mak; then rm -rf config.mak; fi
	dh_clean
	
override_dh_auto_clean:
	echo "SHUTDOWN_PREFIX=dinit-" > ./mconfig
	$(MAKE) clean
	rm mconfig

override_dh_auto_configure:
	sh configure CXXOPTS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"

override_dh_missing:
	dh_missing --list-missing
