1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=4
P21=debian/python2.1-psyco
P22=debian/python2.2-psyco
P23=debian/python2.3-psyco
P24=debian/python2.4-psyco
build: build-stamp
build-stamp:
dh_testdir
## Build for all python versions
python2.1 setup.py build
python2.2 setup.py build
python2.3 setup.py build
python2.4 setup.py build
touch build-stamp
clean:
dh_testdir
rm -f build-stamp install-stamp install-indep-stamp
rm -rf build $(P21) $(P22) $(P23) $(P24)
rm -rf debian/icons
rm -f debian/icons.tgz
dh_clean
install: install-stamp
install-stamp: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -a
# Install Python modules
python2.1 setup.py install --prefix=$(P21)/usr --no-compile
python2.2 setup.py install --prefix=$(P22)/usr --no-compile
python2.3 setup.py install --prefix=$(P23)/usr --no-compile
python2.4 setup.py install --prefix=$(P24)/usr --no-compile
cd debian ; uudecode icons.tgz.uu ; tar xzf icons.tgz ; cd ..
dh_install -a
touch install-stamp
binary-arch: build install
dh_testdir -a
dh_testroot -a
dh_installdocs -a
dh_installexamples -a
dh_installchangelogs -a
dh_link -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|