1 #!/usr/bin/make -f 2 # Sample debian/rules that uses debhelper. 3 # GNU copyright 1997 to 1999 by Joey Hess. 4 5 # Uncomment this to turn on verbose mode. 6 #export DH_VERBOSE=1 7 8 # This is the debhelper compatibility version to use. 9 export DH_COMPAT=4 10 11 12 13 build: build-stamp 14 /usr/bin/python2.4 setup.py build 15 build-stamp: 16 touch build-stamp 17 18 configure: 19 # Do nothing 20 21 clean: 22 dh_testdir 23 dh_testroot 24 rm -f build-stamp 25 26 -rm -rf build 27 28 dh_clean 29 30 install: build 31 dh_testdir 32 dh_testroot 33 dh_clean -k 34 /usr/bin/python2.4 setup.py install --no-compile --prefix=$(CURDIR)/debian/python2.4-libxml2dom/usr 35 36 # Build architecture-independent files here. 37 binary-indep: install 38 dh_testdir 39 dh_testroot 40 41 dh_installdocs 42 dh_installdeb 43 dh_gencontrol 44 dh_md5sums 45 dh_builddeb 46 # We have nothing to do by default. 47 48 binary: binary-indep 49 .PHONY: build clean binary-indep binary install