4
# Uncomment this to turn on verbose mode.
11
pylib := usr/lib/python$(PV)/site-packages
19
-find -name '*.py[co]' | xargs rm -f
21
# Build architecture-independent files here.
27
dh_installdirs -i $(pylib)/Gnuplot usr/share/doc/$(p)
28
python setup.py install --prefix=$(d)/usr
29
-find $(d) -name '*.py[co]' | xargs rm -f
31
install -m 755 debian/datafile.py $(d)/$(pylib)/.
33
ANNOUNCE.txt CREDITS.txt NEWS.txt README.txt TODO.txt \
34
debian/README.datafile
35
cp -a doc $(d)/usr/share/doc/$(p)/html
36
dh_installexamples -i demo.py test.py
37
dh_link /$(pylib)/Gnuplot /usr/share/doc/$(p)/examples/Gnuplot
38
dh_link /$(pylib)/datafile.py /usr/share/doc/$(p)/examples/datafile.py
40
: # make python scripts starting with '#!' executable
41
for i in `find debian -mindepth 2 -type f ! -perm 755`; do \
42
if head -1 $$i | grep -q '^#!'; then \
44
echo "made executable: $$i"; \
48
dh_installchangelogs -i
56
# Build architecture-dependent files here.
58
# We have nothing to do by default.
61
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
63
binary: binary-indep binary-arch
64
.PHONY: build clean binary-indep binary-arch binary