From 67f25d1b212e71412fc4b239a33b79269a0c342c Mon Sep 17 00:00:00 2001 From: Fabio Porcedda Date: Mon, 30 Jun 2014 11:51:28 +0200 Subject: [PATCH] infra: fix "-rebuild" when using rsync source feature MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Because the configure stamp file depends on the rsync stamp file, removing it by the "-clean-for-rebuild" rule trigger the configure step. To avoid triggering the configure step use an order-only dependency. Signed-off-by: Fabio Porcedda Reported-by: Cédric Marie Cc: Thomas Petazzoni Signed-off-by: Thomas Petazzoni --- package/pkg-generic.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 2bd4466035..395e593d24 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -545,7 +545,10 @@ else # source, by rsyncing # depends # configure -$$($(2)_TARGET_CONFIGURE): $$($(2)_TARGET_RSYNC) + +# Use an order-only dependency so the "-clean-for-rebuild" rule +# can remove the stamp file without triggering the configure step. +$$($(2)_TARGET_CONFIGURE): | $$($(2)_TARGET_RSYNC) $(1)-depends: $$($(2)_FINAL_DEPENDENCIES) -- 2.30.2