#! /usr/bin/make -f
%:
	dh $@

export DEB_CFLAGS_MAINT_APPEND := -Wall

override_dh_auto_build:
	dh_auto_build -- $(shell dpkg-buildflags --export=configure)

# You only need to run this immediately after checking out the package from
# revision control.
quilt-setup:
	[ ! -d .pc ]
	set -e; for patch in $$(quilt series | tac); do \
		patch -p1 -R --no-backup-if-mismatch <"debian/patches/$$patch"; \
	done
	quilt push -a

.PHONY: quilt-setup
