[linux-tools] 02/03: Move stamp directory creation into rules.real

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Wed Oct 14 01:33:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux-tools.

commit 5385ecc9a830c50e1bac3b806b0917ef077791fd
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Wed Oct 14 02:05:02 2015 +0100

    Move stamp directory creation into rules.real
---
 debian/rules      | 5 +----
 debian/rules.real | 1 +
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 58b5d88..4572e23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,15 +9,12 @@ MAKEFLAGS += $(subst parallel=,-j,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
 build: build-arch build-indep
 
-build-arch: debian/control $(STAMPS_DIR)
+build-arch: debian/control
 	dh_testdir
 	$(MAKE) -f debian/rules.gen build
 
 build-indep: debian/control
 
-$(STAMPS_DIR):
-	@[ -d $@ ] || mkdir $@
-
 DIR_ORIG = ../orig/$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)
 TAR_ORIG_NAME = $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.xz
 TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard ../orig/$(TAR_ORIG_NAME)))
diff --git a/debian/rules.real b/debian/rules.real
index c9400ef..a75feb4 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -15,6 +15,7 @@ build: $(STAMPS_DIR)/build
 
 $(STAMPS_DIR)/build:
 	$(MAKE) -C $(BUILD_DIR) top_srcdir=$(CURDIR)
+	mkdir -p $(STAMPS_DIR)
 	touch '$@'
 
 install-kbuild: PACKAGE_NAME = linux-kbuild-$(VERSION)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-tools.git



More information about the Kernel-svn-changes mailing list