mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
Don't go menuconfig if no .config present.
Handle the case where targets does not exist when calling distclean.
This commit is contained in:
parent
b9c70956c3
commit
cdd1cf06bc
5
Makefile
5
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"
|
||||
|
Loading…
Reference in New Issue
Block a user