-OPENWRTVERSION:=$(RELEASE)
-ifneq ($(VERSION),)
-OPENWRTVERSION:=$(VERSION) ($(OPENWRTVERSION))
-else
-REV:=$(shell LANG=C svn info | awk '/^Revision:/ { print$$2 }' )
-ifneq ($(REV),)
-OPENWRTVERSION:=$(OPENWRTVERSION)/r$(REV)
-endif
-endif
-export OPENWRTVERSION
-
-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; \
- $(NO_TRACE_MAKE) --no-print-dir DUMP=1 -C $$dir 2>&- || true; \
- done > $@
-endif
-
-.config.in: .pkginfo
- @./scripts/gen_menuconfig.pl < $< > $@ || rm -f $@
-
-pkginfo-clean: FORCE
- -rm -f .pkginfo .config.in
-
-./scripts/config/mconf: .config.in
- @$(MAKE) -C scripts/config all
-
-./scripts/config/conf: .config.in
- @$(MAKE) -C scripts/config conf
-
-config: ./scripts/config/conf FORCE
- $< Config.in
-
-defconfig: ./scripts/config/conf FORCE
- touch .config
- $< -D .config Config.in