#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	a2x -d manpage -f manpage $(CURDIR)/debian/paprefs.1.txt
	dh_auto_build


override_dh_auto_clean:
	rm -f $(CURDIR)/debian/paprefs.1.xml
	rm -f $(CURDIR)/debian/paprefs.1
	dh_auto_clean


#update-patch-series:
#	mkdir -p $(CURDIR)/debian/patches
#	rm -f $(CURDIR)/debian/patches/*.patch
#	git format-patch -o $(CURDIR)/debian/patches patches ^upstream | \
#		xargs -n 1 basename > $(CURDIR)/debian/patches/series
#	for patch in $$(ls $(CURDIR)/debian/patches/*.patch) ; \
#	do \
#		lines=$$(cat $$patch | wc -l) ; \
#		head -n $$(($$lines - 3)) $$patch > $${patch}.chomped ; \
#		mv $${patch}.chomped $$patch ; \
#	done
