From 5385ecc9a830c50e1bac3b806b0917ef077791fd Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Wed, 14 Oct 2015 02:05:02 +0100 Subject: [PATCH] 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 58b5d88aa..4572e23c6 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 c9400efd3..a75feb4ae 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)