#!/usr/bin/make -f

build: clean
	./configure $(CONF_OPTS)
	$(MAKE) && touch build

clean:
	dh_testdir
	dh_clean
	rm -rf debian/tmp build
	-$(MAKE) proper

binary-indep:

binary-arch: build
	$(MAKE) ROOTDIR=$(CURDIR)/debian/tmp install
	cp autoload debian/postinst
	cp cleanup debian/postrm
	dh_testdir
	dh_testroot
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
