summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-12-04 03:04:37 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-12-04 03:04:37 +0000
commita087e6c06e5b12d70c014d38851697c4f7daac40 (patch)
tree1a06e20319c607374ff9474c8deacab844cf38e8
parent4d761f0cd585654092dc87bc4887d0125f1cbd0b (diff)
fix make clean for unconfigured build trees
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9655 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Makefile2
-rw-r--r--include/toplevel.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e56535eac..970b0896c 100644
--- a/Makefile
+++ b/Makefile
@@ -45,10 +45,10 @@ $(BUILD_DIR)/.prepared: Makefile
clean: FORCE
rm -rf $(BUILD_DIR) $(BIN_DIR)
$(MAKE) target/linux/clean
- rm -rf $(TMP_DIR)
dirclean: clean
rm -rf $(STAGING_DIR) $(STAGING_DIR_HOST) $(STAGING_DIR_TOOLCHAIN) $(TOOLCHAIN_DIR) $(BUILD_DIR_HOST)
+ rm -rf $(TMP_DIR)
# check prerequisites before starting to build
prereq: $(package/stamp-prereq) $(target/stamp-prereq) ;
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 793022365..040ff5124 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -98,7 +98,7 @@ download: .config FORCE
$(MAKE) -j1 package/download
$(MAKE) -j1 target/download
-clean dirclean:
+clean dirclean: .config
@$(MAKE) $@
prereq:: .config