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
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
DEB_COMPRESS_EXCLUDE := .pdf doc/html/
DEB_MAKE_MAKEFILE := Makefile.skel
DEB_MAKE_BUILD_TARGET := setup USRDIR=/usr PYTHON_COMMAND=/usr/bin/python GV_COMMAND=/usr/bin/gv GV_OPT=--
DEB_MAKE_INSTALL_TARGET := install USRDIR=$(DEB_DESTDIR)/usr MANDIR=$(DEB_DESTDIR)/usr/share/man/man1
common-build-indep::
rm -rf doc/html
cd doc; plastex -d html --disable-image-cache pyxplot.tex
rm -rf doc/html/.cache # --disable-image-cache does not seem to work
find doc/html '(' -name __init__.py -or -name '__init__.py[co]' ')' -delete
find doc/html -type l | while read l; do cp --remove-destination "$$(readlink "$$l")" "$$l"; done
install/pyxplot::
rm -rf $(DEB_DESTDIR)/usr/share/pyxplot/pyx
binary-install/pyxplot::
dh_pycentral -ppyxplot
clean::
rm -f doc/pyxplot.paux doc/html.stamp
|