[Python-modules-commits] r5789 - in packages/matplotlib/trunk/debian (rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Tue Jul 1 21:34:08 UTC 2008


    Date: Tuesday, July 1, 2008 @ 21:34:07
  Author: piotr
Revision: 5789

* clean doc directory
* fix doc build rule

Modified:
  packages/matplotlib/trunk/debian/rules

Modified: packages/matplotlib/trunk/debian/rules
===================================================================
--- packages/matplotlib/trunk/debian/rules	2008-07-01 21:33:53 UTC (rev 5788)
+++ packages/matplotlib/trunk/debian/rules	2008-07-01 21:34:07 UTC (rev 5789)
@@ -18,11 +18,13 @@
 build: patch build-arch build-indep
 
 build-indep: build-indep-stamp
-build-indep-stamp:
+build-indep-stamp: $(DEFPY:%=build-stamp-%)
 	dh_testdir
 
 	# build the doc
-	-( cd doc ; rm pyplots/tex_unicode_demo.py ; MATPLOTLIBDATA=../lib/matplotlib/mpl-data/ PYTHONPATH=../build/lib.linux-x86_64-2.5/ ./make.py )
+	-( cd doc ; rm pyplots/tex_unicode_demo.py;\
+		MATPLOTLIBDATA=../lib/matplotlib/mpl-data/ \
+		PYTHONPATH=../build/lib.$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)-$(DEFPY) ./make.py )
 
 	touch build-indep-stamp
 
@@ -42,12 +44,14 @@
 	for i in $(PYVERS); do python$(i) ./setup.py clean --all; done
 	-rm -f *-stamp*
 	-rm -rf build *.pyc *.pyo
-	find ./lib -name '*.pyc' -exec rm {} \;
 
 	rm -f lib/matplotlib/mpl-data/matplotlib.conf lib/matplotlib/mpl-data/matplotlibrc
 
 	# clean the doc
 	( cd doc ; ./make.py clean )
+	rm -f doc/_static/inheritance*
+	rm -f doc/_static/math-*.png
+	find . -name '*.pyc' -exec rm {} \;
 
 	dh_clean
 




More information about the Python-modules-commits mailing list