#!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # # Modified to make a template file for a multi-binary package with separated # build-arch and build-indep targets by Bill Allombert 2001 # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS PYVERS := $(shell pyversions -r) configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp #Architecture build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: configure-stamp set -e; for py in $(PYVERS); do \ $$py setup.py build; done touch build-arch-stamp build-indep: build-indep-stamp build-indep-stamp: configure-stamp touch build-indep-stamp clean: dh_testdir dh_testroot rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP# rm -rf build dh_clean install: build dh_testdir dh_testroot dh_clean -k -s dh_installdirs -s set -e; for py in $(PYVERS); do \ $$py setup.py install --root=$(CURDIR)/debian/python-pyxattr; \ done rm -rf $(CURDIR)/debian/python-pyxattr/usr/share/doc/pyxattr-0.2.1 # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs -A README NEWS xattr.txt dh_strip dh_compress dh_fixperms dh_pysupport dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages here. binary-indep: build install # Nothing to do binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure