Browse Source

Patch from Stefan Allius. Only build config stuff when needed.

Eric Andersen 21 years ago
parent
commit
40d85ae85c
2 changed files with 7 additions and 3 deletions
  1. 4 3
      extra/Makefile
  2. 3 0
      extra/config/Makefile

+ 4 - 3
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

+ 3 - 0
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