[pkg-nvidia-devel] r362 - /packages/nvidia-graphics-drivers/trunk/Makefile

rdonald at users.alioth.debian.org rdonald at users.alioth.debian.org
Wed Feb 6 20:09:43 UTC 2008


Author: rdonald
Date: Wed Feb  6 20:09:43 2008
New Revision: 362

URL: http://svn.debian.org/wsvn/pkg-nvidia/?sc=1&rev=362
Log:
twiddle some more knobs

Modified:
    packages/nvidia-graphics-drivers/trunk/Makefile

Modified: packages/nvidia-graphics-drivers/trunk/Makefile
URL: http://svn.debian.org/wsvn/pkg-nvidia/packages/nvidia-graphics-drivers/trunk/Makefile?rev=362&op=diff
==============================================================================
--- packages/nvidia-graphics-drivers/trunk/Makefile (original)
+++ packages/nvidia-graphics-drivers/trunk/Makefile Wed Feb  6 20:09:43 2008
@@ -1,4 +1,65 @@
 #!/usr/bin/make -f
 # Makefile for building prebuilt nvidia kernel modules
 include $(M)/debian/conf.mk
-IGNORE_CC_MISMATCH=1 CC="$(CC)" $(MAKE) -C $(M)/$(dirname) -f Makefile SYSSRC=$(KSRC)  $(KPKG_EXTRAV_ARG) KBUILD_PARAMS=$(KBUILD_PARAMS) module
+
+binary:
+	echo "binary";
+       
+modules:
+	echo "modules";
+
+
+.PHONY: build build-stamp
+build: configure-stamp build-stamp
+build-stamp:
+
+
+	touch $(M)/$(dirname)/gcc-check
+	touch $(M)/$(dirname)/cc-sanity-check
+
+	## Main Make ##
+	IGNORE_CC_MISMATCH=1 CC="$(CC)" $(MAKE) -C $(M)/$(dirname) -f Makefile SYSSRC=$(KSRC)  $(KPKG_EXTRAV_ARG) KBUILD_PARAMS=$(KBUILD_PARAMS) module;
+
+	touch build-stamp
+
+
+.PHONY: install
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	sed 's/#KVERS#/$(KVERS)/g' debian/control.template > $(M)/debian/control
+	sed 's/#KVERS#/$(KVERS)/g' debian/dirs.template > $(M)/debian/dirs
+	sed 's/#KVERS#/$(KVERS)/g' debian/override.template > $(M)/debian/override
+
+	dh_installdirs
+
+
+	install -m 0644 $(CURDIR)/debian/override $(M)/debian/nvidia-kernel-$(KVERS)/usr/share/lintian/overrides/nvidia-kernel-$(KVERS)
+	if [ "$(PATCHLEVEL)" = "6" ] ; then \
+	   install -m 0644 $(CURDIR)/$(dirname)/nvidia.ko $(M)/debian/nvidia-kernel-$(KVERS)/lib/modules/$(KVERS)/nvidia/nvidia.ko ; \
+	else \
+	   install -m 0644 $(CURDIR)/$(dirname)/nvidia.o $(M)/debian/nvidia-kernel-$(KVERS)/lib/modules/$(KVERS)/nvidia/nvidia.o ;\
+	fi
+
+.PHONY: clean
+clean: clean.Makefile 
+	if [ -f $(CURDIR)/debian/control.template ]; then \
+		cp  $(CURDIR)/debian/control.template $(CURDIR)/debian/control; \
+	fi
+
+	rm -f build-stamp configure-stamp
+
+
+	$(MAKE) clean SYSSRC=$(KSRC) -C $(M)/$(dirname) -f Makefile $(KPKG_EXTRAV_ARG)
+        
+	rm -f $(M)/$(dirname)/Makefile || true; 	
+	-rm $(M)/$(dirname)/gcc-check
+	-rm $(M)/$(dirname)/cc-sanity-check
+	
+	-dh_clean
+
+	-rm $(M)/debian/control
+	-rm $(M)/debian/dirs
+	-rm $(M)/debian/override




More information about the Pkg-nvidia-devel mailing list