summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-12-17 07:28:28 +0000
committerEric Andersen <andersen@codepoet.org>2002-12-17 07:28:28 +0000
commit40d85ae85cf1d928284494ea9b64fa0a7b97f2f9 (patch)
tree89e1aaca14ff593ffe925d4399df29a762949f38
parentabc21757345eb8de2779a32bd88b0a8fa62bb0ee (diff)
Patch from Stefan Allius. Only build config stuff when needed.
-rw-r--r--extra/Makefile7
-rw-r--r--extra/config/Makefile3
2 files changed, 7 insertions, 3 deletions
diff --git a/extra/Makefile b/extra/Makefile
index e32daef36..4dd33b5d2 100644
--- a/extra/Makefile
+++ b/extra/Makefile
@@ -26,7 +26,8 @@ include $(TOPDIR)Rules.mak
LIBC=$(TOPDIR)libc.a
-DIRS = gcc-uClibc config
+DIRS = gcc-uClibc
+EXTRA_DIRS_TO_CLEAN = config
all: subdirs
@@ -37,12 +38,12 @@ clean: subdirs_clean
rm -f *.[oa] *~ core
subdirs: $(patsubst %, _dir_%, $(DIRS))
-subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
+subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS) $(EXTRA_DIRS_TO_CLEAN))
$(patsubst %, _dir_%, $(DIRS)) : dummy
$(MAKE) -C $(patsubst _dir_%, %, $@)
-$(patsubst %, _dirclean_%, $(DIRS)) : dummy
+$(patsubst %, _dirclean_%, $(DIRS) $(EXTRA_DIRS_TO_CLEAN)) : dummy
$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
.PHONY: dummy
diff --git a/extra/config/Makefile b/extra/config/Makefile
index 442fbfbed..e28b96af3 100644
--- a/extra/config/Makefile
+++ b/extra/config/Makefile
@@ -104,6 +104,9 @@ ncurses:
echo ">>" ;\
echo ">> You must have Ncurses installed in order" ;\
echo ">> to use 'make menuconfig'" ;\
+ echo ">>" ;\
+ echo ">> Maybe you want to try 'make config', which" ;\
+ echo ">> doesn't depend on the Ncurses libraries." ;\
echo ;\
exit 1 ;\
fi