X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=include%2Fsubdir.mk;h=3c1e3f9cae07814843e20c9ce4ecd69b7c899354;hp=d93d40fca7577844d291244f703e3a2195768118;hb=7dc435ea2965a0219c3a4e8b2a717030a30b4cad;hpb=c2216626e199a1da5adb851c0ec25038a579424f diff --git a/include/subdir.mk b/include/subdir.mk index d93d40fca7..3c1e3f9cae 100644 --- a/include/subdir.mk +++ b/include/subdir.mk @@ -47,9 +47,9 @@ define subdir $(foreach target,$(SUBTARGETS),$(call subtarget,$(1),$(target))) endef -# Parameters: +# Parameters: define stampfile - $(1)/stamp-$(3):=$(STAGING_DIR)/stamp/.$(2)_$(3)$(if $(5),_$(call confvar,$(5))) + $(1)/stamp-$(3):=$(if $(6),$(6),$(STAGING_DIR))/stamp/.$(2)_$(3)$(if $(5),_$(call confvar,$(5))) $$($(1)/stamp-$(3)): $(TMP_DIR)/.build $(4) @+$(SCRIPT_DIR)/timestamp.pl -n $$($(1)/stamp-$(3)) $(1) $(4) || \ $(MAKE) $$($(1)/flags-$(3)) $(1)/$(3)