diff options
Diffstat (limited to 'include/depends.mk')
-rw-r--r-- | include/depends.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/depends.mk b/include/depends.mk index be58ed1cf0..4819d6dfc1 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 |