[Python-modules-commits] r3334 - /packages/pynxt/trunk/debian/rules

bzed-guest at users.alioth.debian.org bzed-guest at users.alioth.debian.org
Sun Sep 30 11:05:06 UTC 2007


Author: bzed-guest
Date: Sun Sep 30 11:05:06 2007
New Revision: 3334

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=3334
Log:
rules updates

Modified:
    packages/pynxt/trunk/debian/rules

Modified: packages/pynxt/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pynxt/trunk/debian/rules?rev=3334&op=diff
==============================================================================
--- packages/pynxt/trunk/debian/rules (original)
+++ packages/pynxt/trunk/debian/rules Sun Sep 30 11:05:06 2007
@@ -55,7 +55,7 @@
 
 else
 
-flash_driver.bin: build-toolchain
+flash_driver.bin: 
 	cp $(OLD_FIRMWARE) .
 
 endif
@@ -74,12 +74,16 @@
 clean_flash_driver.bin:
 	rm -f flash_driver.bin
 
+ifeq "$(wildcard $(OLD_FIRMWARE))" ""
 clean_toolchain:
 	for dir in $(TOOLCHAIN_DIR) $(GCC_DIR) $(BINUTILS_DIR); do \
 	    [ ! -d "$$dir" ] || rm -rf $$dir ;\
 	done
-
+.PHONY: clean_toolchain
 clean: clean_flash_driver.bin clean_toolchain
+else
+clean: clean_flash_driver.bin
+endif
 	dh_testdir
 	dh_testroot
 	-for py in $(PYVERS); do  \
@@ -99,8 +103,7 @@
 	set -e; \
 	for py in $(PYVERS); do  \
 	    $$py setup.py install --root=debian/$(PKGNAME); \
-	done
-
+	done\
 	touch install-stamp
 
 binary-arch: build install
@@ -110,6 +113,7 @@
 	dh_testdir
 	dh_testroot
 	dh_installmanpages
+	dh_installdocs
 	dh_installchangelogs
 	dh_compress -X.py
 	dh_fixperms
@@ -120,4 +124,4 @@
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install clean_flash_driver.bin clean_toolchain
+.PHONY: build clean binary-indep binary-arch binary install clean_flash_driver.bin 




More information about the Python-modules-commits mailing list