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