[uClinux-dev] How about avoiding generate "config.in" every time run "make menuconfig"?

Roy Huang royhuang9 at gmail.com
Tue Jan 16 03:00:50 EST 2007


Hi,

Every time run "make menuconfig", uClinux-dist/config.in will be
generated. Do you think it is really needed. How about only generated
config.in at the first time?


--- uClinux-dist-old/Makefile	2007-01-16 16:02:43.000000000 +0800
+++ uClinux-dist-new/Makefile	2007-01-15 11:43:55.000000000 +0800
@@ -82,7 +82,9 @@
 .PHONY: config.tk config.in

 config.in:
-	config/mkconfig > config.in
+	@if [ ! -f config.in ]; then \
+		config/mkconfig > config.in; \
+	 fi

 config.tk: config.in
 	$(MAKE) -C $(SCRIPTSDIR) tkparse



More information about the uClinux-dev mailing list