X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/d29153dc010840afa45e70ced91c5e558fca6bb6..4fcbf77ad6679f83bd5663e372962673759541db:/include/toplevel.mk diff --git a/include/toplevel.mk b/include/toplevel.mk index a9ca3a280..c92686019 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -16,7 +16,7 @@ include $(TOPDIR)/include/verbose.mk ifneq ($(VERSION),) OPENWRTVERSION:=$(VERSION) ($(OPENWRTVERSION)) else - REV:=$(shell LANG=C svn info | awk '/^Revision:/ { print$$2 }' ) + REV:=$(if $(wildcard .svn/entries),$(shell LANG=C svn info | awk '/^Revision:/ { print$$2 }' )) ifneq ($(REV),) OPENWRTVERSION:=$(OPENWRTVERSION)/r$(REV) endif @@ -52,6 +52,8 @@ prepare-tmpinfo: FORCE scripts/config/mconf: @+$(MAKE) -C scripts/config all +$(eval $(call rdep,scripts/config,scripts/config/mconf)) + scripts/config/conf: @+$(MAKE) -C scripts/config conf @@ -120,7 +122,7 @@ symlinkclean: rm -rf tmp distclean: - rm -rf tmp build_dir staging_dir dl .config* + rm -rf tmp build_dir staging_dir dl .config* feeds ifeq ($(findstring v,$(DEBUG)),) .SILENT: symlinkclean clean dirclean distclean config-clean download help tmpinfo-clean .config scripts/config/mconf scripts/config/conf menuconfig tmp/.prereq-build tmp/.prereq-package prepare-tmpinfo