summaryrefslogtreecommitdiffstats
path: root/target/sdk/files/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-26 20:17:28 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-26 20:17:28 +0000
commit2db90bec770409e09a07d27f34494636be131ba8 (patch)
treeea226417b84ba413e555ae785d9f0af1cb53cabe /target/sdk/files/Makefile
parent73b719b1c6b76b61b9bc7d7aec1a59e7ced24b9a (diff)
fix the sdk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6718 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/sdk/files/Makefile')
-rw-r--r--target/sdk/files/Makefile39
1 files changed, 28 insertions, 11 deletions
diff --git a/target/sdk/files/Makefile b/target/sdk/files/Makefile
index 7f42b697a..184a1f9e4 100644
--- a/target/sdk/files/Makefile
+++ b/target/sdk/files/Makefile
@@ -33,21 +33,38 @@ export DEVELOPER
SDK=1
export SDK
+export IS_TTY=$(shell tty -s && echo 1 || echo 0)
+include $(TOPDIR)/include/verbose.mk
+
all: world
-.pkginfo: FORCE
-ifneq ($(shell ./scripts/timestamp.pl -p .pkginfo package Makefile),.pkginfo)
- @echo Collecting package info...
- @-for dir in package/*/; do \
- echo Source-Makefile: $${dir}Makefile; \
- $(MAKE) --no-print-dir DUMP=1 -C $$dir 2>&- || true; \
- done > $@
-endif
+define stamp
+tmp/info/.stamp-$(1)-$(shell ls $(2)/*/Makefile $(5) | (md5sum || md5) 2>/dev/null | cut -d' ' -f1)
+endef
+
+STAMP=$(call stamp,pkginfo,package)
+
+$(STAMP):
+ @mkdir -p tmp/info
+ @rm -f tmp/info/.stamp-pkginfo*
+ @touch $@
+
+define filedep
+$(foreach FILE,$(shell ls package/*/Makefile),
+tmp/.pkginfo: $(FILE)
+$(FILE):
+ @true
+)
+endef
+
+$(eval $(filedep))
-pkginfo-clean: FORCE
- -rm -f .pkginfo .config.in
+tmp/.pkginfo: $(STAMP)
+ @echo -n Collecting package info...
+ @$(NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET="pkginfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPS=""
-package/%: .pkginfo FORCE
+package/%: FORCE
+ @$(NO_TRACE_MAKE) -s tmp/.pkginfo
$(MAKE) -C package $(patsubst package/%,%,$@) SDK=1
download: FORCE