summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-04 21:07:29 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-04 21:07:29 +0000
commit1d45d04ef7ca05ad12690e8d1e467b540df9f9ac (patch)
treedf9ce7439acbaee3144497810074ceb02fe9dc6e /include
parent4efb08ae2dfdef73743129184e49fdbf392f6720 (diff)
fix metadata scan for profile split
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6515 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/scan.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/scan.mk b/include/scan.mk
index 7725fc713..ff23e0961 100644
--- a/include/scan.mk
+++ b/include/scan.mk
@@ -24,10 +24,18 @@ tmp/.$(SCAN_TARGET):
@($(call progress,Collecting $(SCAN_NAME) info: done))
@echo
+ifneq ($(SCAN_EXTRA),)
+SCAN_STAMP=tmp/info/.scan-$(SCAN_TARGET)-$(shell ls $(SCAN_EXTRA) 2>/dev/null | (md5sum || md5) 2>/dev/null | cut -d' ' -f1)
+$(SCAN_STAMP):
+ rm -f tmp/info/.scan-$(SCAN_TARGET)-*
+ mkdir -p $(shell dirname $@)
+ touch $@
+endif
+
define scanfiles
$(foreach FILE,$(SCAN),
tmp/.$(SCAN_TARGET): tmp/info/.$(SCAN_TARGET)-$(FILE) FORCE
- tmp/info/.$(SCAN_TARGET)-$(FILE): $(SCAN_DEPS) $(SCAN_DIR)/$(FILE)/Makefile
+ tmp/info/.$(SCAN_TARGET)-$(FILE): $(SCAN_DEPS) $(SCAN_DIR)/$(FILE)/Makefile $(SCAN_STAMP)
{ \
$$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(FILE)) \
echo Source-Makefile: $(SCAN_DIR)/$(FILE)/Makefile; \