# HG changeset patch # User "Yann E. MORIN" # Date 1182016835 0 # Node ID 14f6a1d442f28af34e308e523e87d8a4e016e7d5 # Parent dce3a2ba6e7111b0f8bcee95dde8232990083b72 Don't go menuconfig if no .config present. Handle the case where targets does not exist when calling distclean. diff -r dce3a2ba6e71 -r 14f6a1d442f2 Makefile --- a/Makefile Sat Jun 16 17:56:17 2007 +0000 +++ b/Makefile Sat Jun 16 18:00:35 2007 +0000 @@ -43,8 +43,8 @@ @echo '' @echo 'Execute "make" or "make all" to build all targets marked with [*]' -.config: $(CONFIG_FILES) $(CT_TOP_DIR)/config/debug.in - @make oldconfig +.config: + @echo "You must run either one of \"make config\" or \"make menuconfig\" first" # Actual build build: .config @@ -58,4 +58,5 @@ distclean:: clean @rm -f .config* ..config.tmp @rm -f log.* + @[ ! -d "$(CT_TOP_DIR)/targets" ] || chmod -R u+w "$(CT_TOP_DIR)/targets" @rm -rf "$(CT_TOP_DIR)/targets"