X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Fdepends.mk;fp=include%2Fdepends.mk;h=1e01d35f81bdceb395c1d66e7f45fb9977cc75bd;hb=56cdcf23a35f80615b40df3481151764aac30089;hp=07345a3998e6d60b3e1d8d1a20a9830e4fad4e6d;hpb=76184df0e655ad06980fbc72961e9103b188d3eb;p=openwrt%2Fstaging%2Fdedeckeh.git diff --git a/include/depends.mk b/include/depends.mk index 07345a3998..1e01d35f81 100644 --- a/include/depends.mk +++ b/include/depends.mk @@ -11,18 +11,19 @@ # 3: tempfile for file listings # 4: find options -FINDPARAMS := -type f -not -name ".*" -and -not -path "*.svn*" +DEP_FINDPARAMS := -type f -not -name ".*" -and -not -path "*.svn*" define rdep - $(foreach file,$(shell find $(1) $(FINDPARAMS) -and -not -path "*:*" $(4)), + $(foreach file,$(shell find $(1) $(DEP_FINDPARAMS) -and -not -path "*:*" $(4)), $(2): $(file) $(file): ; ) - ifneq ($(shell find $(1) $(FINDPARAMS) $(4) 2>/dev/null | md5s),$(shell cat $(3) 2>/dev/null)) - $(2): $(3) - endif + ifneq ($(3),) + ifneq ($$(shell find $(1) $(DEP_FINDPARAMS) $(4) 2>/dev/null | md5s),$(if $(3),$(shell cat $(3) 2>/dev/null))) + $(2): $(3) + endif - $(3): FORCE - @-find $(1) $(FINDPARAMS) $(4) 2>/dev/null | md5s > $$@ - + $(3): FORCE + @-find $(1) $(DEP_FINDPARAMS) $(4) 2>/dev/null | md5s > $$@ + endif endef