#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_OPTIONS = nostrip

%:
	dh $@

.PHONY: build
build:
	dh $@

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- --disable-static --enable-libopenmpt_modplug

override_dh_auto_build:
	dh_auto_build -- all doxygen-doc

override_dh_installchangelogs:
	dh_installchangelogs libopenmpt/dox/changelog.md

override_dh_missing:
	dh_missing --fail-missing
