X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/deeda98ba5be5661b582b94093a3bb228f9e4036..37cc74a265af60c90bb009bc598a90132325c623:/include/depends.mk diff --git a/include/depends.mk b/include/depends.mk index be58ed1cf..4819d6dfc 100644 --- a/include/depends.mk +++ b/include/depends.mk @@ -19,11 +19,13 @@ define rdep ) ifneq ($(3),) - ifneq ($$(shell find $(1) $(DEP_FINDPARAMS) $(4) 2>/dev/null | md5s),$(if $(3),$(shell cat $(3) 2>/dev/null))) + ifneq ($$(shell find $(1) $(DEP_FINDPARAMS) $(4) 2>/dev/null | md5s),$(if $(3),$(shell cat $(3) || touch $(3) 2>/dev/null))) $(2): $(3) endif - $(3): FORCE - @-find $(1) $(DEP_FINDPARAMS) $(4) 2>/dev/null | md5s > $$@ endif + + $(3): FORCE + @-find $(1) $(DEP_FINDPARAMS) $(4) 2>/dev/null | md5s > $$@ + .PRECIOUS: $(3) endef