#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
package=python-quixote

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -rf build build-ext-*
	-rm -rf Quixote.egg-info
	find . -name '*.pyc' -exec rm {} \;
	dh_clean

build-stamp:
	dh_testdir
	python setup.py build
	touch $@

build: build-stamp

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	python setup.py install \
		--no-compile \
		--root $(CURDIR)/debian/$(package) \
		--single-version-externally-managed

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdirs
	dh_installchangelogs CHANGES.txt -a
	dh_installdocs -a
	dh_installexamples -a
	dh_compress -X.cgi -X.py -X.conf -a
	dh_fixperms -a
	dh_pysupport -a
	dh_makeshlibs -a
	dh_shlibdeps -a
	dh_strip -a
	dh_installdeb -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary-indep:
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGES.txt -i
	dh_installdocs -i
	dh_installexamples -i
	dh_compress -X.cgi -X.py -X.conf -i
	dh_fixperms -i
	dh_pysupport -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install patch unpatch
