1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/packages/ubuntu-feisty/python-xsltools/debian/rules Sat Sep 08 16:21:49 2007 +0000
1.3 @@ -0,0 +1,66 @@
1.4 +#!/usr/bin/make -f
1.5 +# A debian/rules file using python-central.
1.6 +
1.7 +# Uncomment this to turn on verbose mode.
1.8 +#export DH_VERBOSE=1
1.9 +
1.10 +export DH_COMPAT=5
1.11 +
1.12 +PYVERS=$(shell pyversions -vr)
1.13 +
1.14 +build: build-stamp
1.15 +
1.16 +build-stamp: $(PYVERS:%=build-python%) build-python-scripts
1.17 + touch $@
1.18 +
1.19 +build-python%:
1.20 + python$* setup.py build_py
1.21 + touch $@
1.22 +
1.23 +build-python-scripts:
1.24 + python setup.py build_scripts
1.25 + touch $@
1.26 +
1.27 +clean:
1.28 + dh_testdir
1.29 + dh_testroot
1.30 + rm -f *-stamp
1.31 + rm -rf build
1.32 + find . -name '*.py[co]' | xargs rm -f
1.33 + dh_clean
1.34 +
1.35 +install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts
1.36 + # Script fixing would appear here.
1.37 +
1.38 +install-prereq:
1.39 + dh_testdir
1.40 + dh_testroot
1.41 + dh_clean -k
1.42 +
1.43 +install-python%:
1.44 + python$* setup.py install_lib --install-dir $(CURDIR)/debian/python-xsltools/usr/lib/python$*/site-packages
1.45 +
1.46 +install-python-scripts:
1.47 + python setup.py install_scripts --install-dir $(CURDIR)/debian/python-xsltools/usr/bin
1.48 +
1.49 +# Build architecture-independent files here.
1.50 +
1.51 +binary-indep: install
1.52 + tools/apidocs.sh
1.53 + dh_testdir -i
1.54 + dh_testroot -i
1.55 + dh_pycentral -i
1.56 + dh_installdocs -i
1.57 + dh_fixperms -i
1.58 + dh_installdeb -i
1.59 + dh_gencontrol -i
1.60 + dh_md5sums -i
1.61 + dh_builddeb -i
1.62 +
1.63 +# Build architecture-dependent files here.
1.64 +
1.65 +binary-arch:
1.66 + # Empty rule for this package.
1.67 +
1.68 +binary: binary-indep binary-arch
1.69 +.PHONY: build clean binary-arch binary-indep binary install