X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7d563990444cf27df1590f1c2404713d289d8646..be8ad0190d689eb7f797bdc0618d7e87892a831d:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index c323a9c24..f93b00803 100644 --- a/Makefile +++ b/Makefile @@ -38,12 +38,14 @@ endif endif export OPENWRTVERSION +all: + .pkginfo: FORCE -ifeq ($(shell ./scripts/timestamp.pl -p .pkginfo package),package) +ifneq ($(shell ./scripts/timestamp.pl -p .pkginfo package Makefile),.pkginfo) @echo Collecting package info... - @-for makefile in package/*/Makefile; do \ - echo Source-Makefile: $$makefile; \ - $(MAKE) DUMP=1 -f $$makefile 2>&- || true; \ + @-for dir in package/*/; do \ + echo Source-Makefile: $${dir}Makefile; \ + $(MAKE) --no-print-dir DUMP=1 -C $$dir 2>&- || true; \ done > $@ endif @@ -68,5 +70,14 @@ config: scripts/config/conf config-clean: $(MAKE) -C scripts/config clean +package/%: .pkginfo + $(MAKE) -C package $(patsubst package/%,%,$@) + +target/%: .pkginfo + $(MAKE) -C target $(patsubst target/%,%,$@) + +toolchain/%: + $(MAKE) -C toolchain $(patsubst toolchain/%,%,$@) + .PHONY: FORCE FORCE: