#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/quilt/quilt.make PYVERS=$(shell pyversions -vr) build: build-stamp build-stamp: patch $(PYVERS:%=build-python%) build-python%: dh_testdir cd webserve && python$* setup.py build touch $@ clean: clean-python-build unpatch clean-python-build: clean-patched $(PYVERS:%=clean-python%) clean-patched: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. cd webserve && python setup.py clean rm -rf webserve/build/ dh_clean clean-python%: rm -f build-python$* install: build $(PYVERS:%=install-python%) install-python%: dh_testdir dh_testroot dh_clean dh_installdirs # Add here commands to install the package into debian/tmp cd webserve && python$* setup.py install --root=$(CURDIR)/debian/bazaar-webserve # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_install dh_compress dh_fixperms dh_pycentral dh_python dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: build install # We have nothing to do by default. binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install clean-python-build