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 68 69 70 71 72 73 74 75 76 77 78 79
|
#!/usr/bin/make -f
PYVERS=$(shell pyversions -r)
PREFIX := debian/python-pyvtk/usr
clean:
dh_testdir
dh_testroot
python setup.py clean
rm -f build-stamp
-find -name '*.py[co]' | xargs rm -f
rm -f doc/pyvtk doc/*.html
rm -f lib/test.vtk
rm -rf build
dh_clean
build: build-stamp
build-stamp:
dh_testdir
ln -s ../lib doc/pyvtk
cd doc && sh gen_pydoc.sh
rm -f doc/pyvtk
touch build-stamp
install: DH_OPTIONS=
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
python setup.py install --no-compile \
--prefix=$(PREFIX)
mkdir -p debian/python-pyvtk/usr/share/doc/python-pyvtk
cp -a doc debian/python-pyvtk/usr/share/doc/python-pyvtk/html
dh_install
# This single target is used to build all the packages, all at once, or
# one at a time. So keep in mind: any options passed to commands here will
# affect _all_ packages. Anything you want to only affect one package
# should be put in another target, such as the install target.
binary-common:
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs BUGS.txt NEWS.txt README.txt TODO.txt
dh_installexamples examples/*
dh_strip
dh_link
dh_compress -X.py
dh_fixperms
dh_python2
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture independant packages using the common target.
binary-indep: build install
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
# Build architecture dependant packages using the common target.
binary-arch: build install
# $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
# Any other binary targets build just one binary package at a time.
binary-%: build install
make -f debian/rules binary-common DH_OPTIONS=-p$*
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|