From: Fabio Porcedda Date: Mon, 30 Jun 2014 09:51:28 +0000 (+0200) Subject: infra: fix "-rebuild" when using rsync source feature X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67f25d1b212e71412fc4b239a33b79269a0c342c;p=buildroot.git infra: fix "-rebuild" when using rsync source feature 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 --- 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)