diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-04 21:07:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-04 21:07:29 +0000 |
commit | 08c5cb8c23540d2573e185a92358e6a358603c03 (patch) | |
tree | d03625ced36706ad03dbd62c3e7fc2ca8ad90306 /include | |
parent | aabda0f133ce61531c4951ccc1c21381e3748cbb (diff) | |
download | master-31e0f0ae-08c5cb8c23540d2573e185a92358e6a358603c03.tar.gz master-31e0f0ae-08c5cb8c23540d2573e185a92358e6a358603c03.tar.bz2 master-31e0f0ae-08c5cb8c23540d2573e185a92358e6a358603c03.zip |
fix metadata scan for profile split
SVN-Revision: 6515
Diffstat (limited to 'include')
-rw-r--r-- | include/scan.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/scan.mk b/include/scan.mk index 7725fc713a..ff23e0961c 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; \ |