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
|
#! /usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
package=python-pmw
i=./debian/tmp
v=Pmw_0_6_2
build:
dh_testdir
touch build
clean:
dh_testdir
-rm -f build
-rm -f `find . -name "*~" -o -name '*.py[co]'`
-rm -rf $(i) debian/files* core debian/substvars
instdirs = \
DEBIAN \
usr/lib/python1.5/site-packages/Pmw/$(v) \
usr/doc/$(package)/examples \
usr/share/doc-base
binary-indep: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs $(instdirs)
dh_installdocs README
dh_installchangelogs
install -m 644 __init__.py $(i)/usr/lib/python1.5/site-packages/Pmw/
install -m 644 $(v)/__init__.py \
$(i)/usr/lib/python1.5/site-packages/Pmw/$(v)/
cp -pr $(v)/lib $(i)/usr/lib/python1.5/site-packages/Pmw/$(v)/
install -m 644 $(v)/demos/* $(i)/usr/doc/$(package)/examples/
-find $(i) -name '*.py[co]' | xargs rm -f
cp -pr $(v)/doc $(i)/usr/doc/$(package)/html
install -m 644 debian/doc-base $(i)/usr/share/doc-base/$(package)
dh_fixperms
dh_compress
-find $(i)/usr/doc/$(package)/examples -name '*.py.gz' | xargs gunzip
chmod a+x $(i)/usr/doc/$(package)/examples/All.py
dh_installdeb
dh_gencontrol
dh_makeshlibs
dh_md5sums
dh_builddeb
binary-arch: build
dh_testdir
# There are no architecture-dependent files to be uploaded
# generated by this package. If there were any they would be
# made here.
# Below here is fairly generic really
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
|