X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e9b5e692d53f003042ced14f67a7f4603b77edea..27ab715e19dea38d83075824e20ef76e6861563e:/include/subdir.mk diff --git a/include/subdir.mk b/include/subdir.mk index 0a3eff307..68afcc48a 100644 --- a/include/subdir.mk +++ b/include/subdir.mk @@ -34,11 +34,11 @@ define subdir $(foreach target,$(SUBTARGETS),$(call subtarget,$(1),$(target))) endef -# Parameters: +# Parameters: define stampfile $(1)/stamp-$(3):=$(STAGING_DIR)/stamp/.$(2)_$(3) - $$($(1)/stamp-$(3)): $(TMP_DIR)/.build - @+$(SCRIPT_DIR)/timestamp.pl -n $$($(1)/stamp-$(3)) $(1) || \ + $$($(1)/stamp-$(3)): $(TMP_DIR)/.build $(4) + @+$(SCRIPT_DIR)/timestamp.pl -n $$($(1)/stamp-$(3)) $(1) $(4) || \ $(MAKE) $$($(1)/flags-$(3)) $(1)/$(3) @mkdir -p $$$$(dirname $$($(1)/stamp-$(3))) @touch $$($(1)/stamp-$(3))