[pkg-nvidia-devel] r1162 - /packages/nvidia-cuda-toolkit/trunk/debian/rules

anbe-guest at users.alioth.debian.org anbe-guest at users.alioth.debian.org
Sat Jun 26 11:45:14 UTC 2010


Author: anbe-guest
Date: Sat Jun 26 11:45:13 2010
New Revision: 1162

URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=1162
Log:
a few updates inspired by nvidia-graphics-drivers

Modified:
    packages/nvidia-cuda-toolkit/trunk/debian/rules

Modified: packages/nvidia-cuda-toolkit/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-cuda-toolkit/trunk/debian/rules?rev=1162&op=diff
==============================================================================
--- packages/nvidia-cuda-toolkit/trunk/debian/rules (original)
+++ packages/nvidia-cuda-toolkit/trunk/debian/rules Sat Jun 26 11:45:13 2010
@@ -20,9 +20,9 @@
 AUTOCLEAN	 = $(filter-out $(AUTOKEEP),$(AUTOGEN))
 
 
-.PHONY: binary binary-arch binary-indep build clean install
-binary binary-arch binary-indep build clean install:
-	dh $@
+.PHONY: autogen prepare
+autogen: $(AUTOGEN)
+prepare: autogen unpack-stamp
 
 
 unpack-stamp:
@@ -41,6 +41,12 @@
 	dh_quilt_patch
 	touch $@
 
+
+.PHONY: binary binary-arch binary-indep build clean install
+binary binary-arch binary-indep build clean install:
+	dh $@
+
+
 override_dh_auto_configure: $(AUTOGEN) unpack-stamp
 
 override_dh_auto_build:
@@ -58,8 +64,8 @@
 	dh_installchangelogs -p nvidia-cuda-profiler debian/tmp/usr/cudaprof/doc/Changelog.txt
 	dh_installchangelogs -p nvidia-opencl-profiler debian/tmp/usr/openclprof/doc/Changelog.txt
 
+# running dh_strip is not permitted by the NVIDIA license
 override_dh_strip:
-	# running dh_strip is not permitted by the NVIDIA license
 
 override_dh_gencontrol:
 	dh_gencontrol -- -V'nvidia:MinVersion=$(version_driver)'
@@ -73,17 +79,14 @@
 	$(RM) $(AUTOCLEAN)
 
 
-.PHONY: autogen
-autogen: $(AUTOGEN)
-
+# Generating control files
+%::	%.in debian/rules.defs
+	perl -p \
+	-e 's{#VERSION_TOOLKIT#}{$(version_toolkit)}g;' \
+	< $< > $@
 
 debian/lib32%.lintian-overrides: debian/lib%.lintian-overrides.i386
 	sed -e 's/^lib/lib32/; s%usr/lib%usr/lib32%g' $< > $@
-
-%:	%.in debian/rules.defs
-	perl -p \
-	-e 's{#VERSION_TOOLKIT#}{$(version_toolkit)}g;' \
-	< $< > $@
 
 
 .PHONY: get-orig-source
@@ -98,7 +101,7 @@
 	    mkdir nvidia-cuda-toolkit-$${newversion}.orig ; \
 	    mv *.run nvidia-cuda-toolkit-$${newversion}.orig/ ; \
 	    chmod 0755 nvidia-cuda-toolkit-$${newversion}.orig/* ; \
-	    tar cfvz ../nvidia-cuda-toolkit_$$newversion.orig.tar.gz \
+	    tar cfvz ../nvidia-cuda-toolkit_$${newversion}.orig.tar.gz \
 		--owner=root --group=src \
 		nvidia-cuda-toolkit-$${newversion}.orig
 	rm -rf get-orig-source




More information about the Pkg-nvidia-devel mailing list