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)