Don't go menuconfig if no .config present.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jun 16 18:00:35 2007 +0000 (2007-06-16)
changeset 15814f6a1d442f2
parent 157 dce3a2ba6e71
child 159 6daa8b5df1b4
Don't go menuconfig if no .config present.
Handle the case where targets does not exist when calling distclean.
Makefile
     1.1 --- a/Makefile	Sat Jun 16 17:56:17 2007 +0000
     1.2 +++ b/Makefile	Sat Jun 16 18:00:35 2007 +0000
     1.3 @@ -43,8 +43,8 @@
     1.4  	@echo  ''
     1.5  	@echo  'Execute "make" or "make all" to build all targets marked with [*]'
     1.6  
     1.7 -.config: $(CONFIG_FILES) $(CT_TOP_DIR)/config/debug.in
     1.8 -	@make oldconfig
     1.9 +.config:
    1.10 +	@echo "You must run either one of \"make config\" or \"make menuconfig\" first"
    1.11  
    1.12  # Actual build
    1.13  build: .config
    1.14 @@ -58,4 +58,5 @@
    1.15  distclean:: clean
    1.16  	@rm -f .config* ..config.tmp
    1.17  	@rm -f log.*
    1.18 +	@[ ! -d "$(CT_TOP_DIR)/targets" ] || chmod -R u+w "$(CT_TOP_DIR)/targets"
    1.19  	@rm -rf "$(CT_TOP_DIR)/targets"