#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with autoreconf -D matchbox-window-manager

override_dh_auto_clean:
	rm -rf build-main build-udeb

override_dh_auto_configure:
	mkdir build-main build-udeb
	dh_auto_configure -Bbuild-main -- --enable-startup-notification --enable-expat
	dh_auto_configure -Bbuild-udeb -- --disable-startup-notification --disable-expat \
		--disable-keyboard --disable-xrm --disable-ping-protocol --enable-standalone

override_dh_auto_build:
	dh_auto_build -Bbuild-main
	dh_auto_build -Bbuild-udeb

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_install:
	dh_auto_install -Bbuild-main --destdir=debian/matchbox-window-manager
	#dh_auto_install -Bbuild-udeb --destdir=debian/matchbox-window-manager-udeb

override_dh_installchangelogs:
	dh_installchangelogs matchbox-window-manager/ChangeLog
