#!/usr/bin/make -f export DPKG_GENSYMBOLS_CHECK_LEVEL=4 # For DEB_HOST_MULTIARCH include /usr/share/dpkg/default.mk include /usr/share/dpkg/architecture.mk %: dh $@ --with autoreconf override_dh_autoreconf: NOCONFIGURE=1 dh_autoreconf ./autogen.sh override_dh_auto_configure: # https://bugs.debian.org/1027272 sed 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' debian/notify-osd.desktop.in > debian/notify-osd.desktop dh_auto_configure # tests require being run against a system install override_dh_auto_test: override_dh_install: dh_install --fail-missing rm debian/notify-osd/usr/share/dbus-1/services/org.freedesktop.Notifications.service rmdir debian/notify-osd/usr/share/dbus-1/services/ rmdir debian/notify-osd/usr/share/dbus-1/ override_dh_installchangelogs: dh_installchangelogs debian/changelog.upstream override_dh_auto_test: pre-build: ifeq (,$(filter nochanges,$(DEB_BUILD_OPTIONS))) bzr log --gnu -r ..tag:$(shell bzr tags -d nosmart+lp:notify-osd | \ sort -k 2 -n | tail -n 1 | tr ' ' '\n' | head -n 1) \ nosmart+lp:notify-osd > debian/changelog.upstream endif .PHONY: pre-build