diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-16 18:00:35 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-16 18:00:35 (GMT) |
commit | cdd1cf06bc276e3d020764975bfe693a9ede9a54 (patch) | |
tree | f8f15eac83282756f03c3334aa2591d5e72a4997 | |
parent | b9c70956c32be51fc6fadea8f3bbe37c175c1880 (diff) |
Don't go menuconfig if no .config present.
Handle the case where targets does not exist when calling distclean.
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -43,8 +43,8 @@ help:: @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 @@ tarball: 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" |