[kernel] r6048 - people/waldi/linux-nonfree-2.6/debian
Bastian Blank
waldi at costa.debian.org
Fri Mar 3 16:33:19 UTC 2006
Author: waldi
Date: Fri Mar 3 16:33:18 2006
New Revision: 6048
Modified:
people/waldi/linux-nonfree-2.6/debian/rules
Log:
debian/rules: Include rules.include from headers package.
Modified: people/waldi/linux-nonfree-2.6/debian/rules
==============================================================================
--- people/waldi/linux-nonfree-2.6/debian/rules (original)
+++ people/waldi/linux-nonfree-2.6/debian/rules Fri Mar 3 16:33:18 2006
@@ -1,25 +1,11 @@
#!/usr/bin/make -f
-#
-# Generally nothing needs to be modified below this line
-#
SHELL := sh -e
-DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
srcver := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
VERSION := $(shell echo $(srcver) | sed -e 's,-[^-]*$$,,')
MAJOR := $(word 1,$(subst ., ,$(VERSION))).$(word 2,$(subst ., ,$(VERSION)))
UPSTREAMVERSION := $(shell echo $(VERSION) | sed -e 's,^[^+]*+,,' -e 's,-rc[0-9]*$$,,')
-include debian/rules.defs
-
-build: debian/control $(STAMPS_DIR)/build-stamp
-$(STAMPS_DIR)/build-stamp: $(BUILD_DIR) $(STAMPS_DIR)
- dh_testdir
- $(MAKE) -f debian/rules.gen build-$(DEB_HOST_ARCH)
- touch $@
-
-$(BUILD_DIR) $(STAMPS_DIR):
- @[ -d $@ ] || mkdir $@
+include /usr/src/linux-headers-$(UPSTREAMVERSION)/modules/rules.include
orig: ../orig/linux-nonfree-$(MAJOR)-$(VERSION)
rsync --delete --exclude debian --exclude .svn -av ../orig/linux-nonfree-$(MAJOR)-$(VERSION)/ .
@@ -36,45 +22,3 @@
maintainerclean:
rm -rf $(filter-out debian, $(wildcard *))
-clean: debian/control
- dh_testdir
- rm -rf $(BUILD_DIR) $(STAMPS_DIR)
- dh_clean
-
-binary-indep:
- dh_testdir
- $(MAKE) -f debian/rules.gen binary-indep
-
-binary-arch:
- dh_testdir
- $(MAKE) -f debian/rules.gen binary-arch-$(DEB_HOST_ARCH)
-
-binary: binary-indep binary-arch
-
-#
-# Makes the master debian/control file by substituting
-# variable values into the template.
-#
-CONTROL_FILES = debian/changelog $(wildcard debian/templates/control.*)
-CONTROL_FILES += debian/arch/defines $(wildcard debian/arch/*/defines) $(wildcard debian/arch/*/*/defines)
-debian/control debian/rules.gen: /usr/src/linux-headers-$(UPSTREAMVERSION)/modules/gencontrol.py $(CONTROL_FILES)
- if [ -f debian/control.md5sum ]; then \
- if md5sum $^ | diff - debian/control.md5sum > /dev/null; then true; else \
- $(MAKE) -f debian/rules debian/control-real; \
- fi \
- else \
- $(MAKE) -f debian/rules debian/control-real; \
- fi
-
-debian/control-real: /usr/src/linux-headers-$(UPSTREAMVERSION)/modules/gencontrol.py $(CONTROL_FILES)
- $<
- md5sum $^ > debian/control.md5sum
- @echo
- @echo This target is made to fail intentionally, to make sure
- @echo that it is NEVER run during the automated build. Please
- @echo ignore the following error, the debian/control file has
- @echo been generated SUCCESSFULLY.
- @echo
- exit 1
-
-.PHONY: clean build setup binary-indep binary-arch binary patch unpatch source tree
More information about the Kernel-svn-changes
mailing list