OSDN Git Service

Patch from Stefan Allius. Only build config stuff when needed.
authorEric Andersen <andersen@codepoet.org>
Tue, 17 Dec 2002 07:28:28 +0000 (07:28 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 17 Dec 2002 07:28:28 +0000 (07:28 -0000)
extra/Makefile
extra/config/Makefile

index e32daef..4dd33b5 100644 (file)
@@ -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
index 442fbfb..e28b96a 100644 (file)
@@ -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