2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 by Joey Hess.
5
# This version is for a hypothetical package that builds an
6
# architecture-dependant package, as well as an architecture-independent
9
# Uncomment this to turn on verbose mode.
12
# This is the debhelper compatibility version to use.
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
28
/usr/bin/python2.2 setup.py build --build-lib build2.2
29
/usr/bin/python2.3 setup.py build --build-lib build2.3
36
rm -f build-arch-stamp build-indep-stamp configure-stamp
38
# Add here commands to clean up after the build process.
39
/usr/bin/python2.2 setup.py clean --all --build-lib build2.2
40
/usr/bin/python2.3 setup.py clean --all --build-lib build2.3
52
# Add here commands to install the package into debian/python-biggles.
53
/usr/bin/python2.2 setup.py install --prefix=`pwd`/debian/python2.2-biggles/usr --no-compile
54
/usr/bin/python2.3 setup.py install --prefix=`pwd`/debian/python2.3-biggles/usr --no-compile
58
# Build architecture-dependent files here.
59
binary-arch: build install
63
dh_installexamples -A -a examples/*
64
dh_installchangelogs -a ChangeLog
76
# Build architecture-independent files here.
77
binary-indep: build install
81
dh_installchangelogs -i ChangeLog
92
binary: binary-arch binary-indep
93
.PHONY: clean binary binary-arch binary-indep install build