summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/pkg-generic.mk5
1 files changed, 4 insertions, 1 deletions
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 "<pkg>-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)
OpenPOWER on IntegriCloud