summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-06-16 18:00:35 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-06-16 18:00:35 (GMT)
commitcdd1cf06bc276e3d020764975bfe693a9ede9a54 (patch)
treef8f15eac83282756f03c3334aa2591d5e72a4997
parentb9c70956c32be51fc6fadea8f3bbe37c175c1880 (diff)
Don't go menuconfig if no .config present.
Handle the case where targets does not exist when calling distclean.
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d522dca..0082f24 100644
--- a/Makefile
+++ b/Makefile
@@ -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"