Lets give this a try...
authorEric Andersen <andersen@codepoet.org>
Thu, 6 Jun 2002 13:00:47 +0000 (13:00 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 6 Jun 2002 13:00:47 +0000 (13:00 -0000)
Makefile

index dc299cded19dc0eda9cb7ae05630e09373a769b9..a112e57810a0b504170b326dd5c5e1da1d98bbe7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -160,21 +160,20 @@ $(TOPDIR)include/config.h:
        fi;
 
 $(TOPDIR).config:
-       cp $(TOPDIR)sysdeps/$(TARGET_OS)/defconfig $(TOPDIR).config
-       mkdir -p $(TOPDIR)include/config
-       $(MAKE) -C scripts/lxdialog all
-       $(BB_SHELL) scripts/Menuconfig sysdeps/$(TARGET_OS)/config.in
+       @if [ ! -f $(TOPDIR).config ] ; then \
+           cp $(TOPDIR)sysdeps/$(TARGET_OS)/defconfig $(TOPDIR).config; \
+       fi;
 
-menuconfig:
+menuconfig: $(TOPDIR).config
        mkdir -p $(TOPDIR)include/config
        $(MAKE) -C scripts/lxdialog all
        $(BB_SHELL) scripts/Menuconfig sysdeps/$(TARGET_OS)/config.in
 
-config:
+config: $(TOPDIR).config
        mkdir -p $(TOPDIR)include/config
        $(BB_SHELL) scripts/Configure sysdeps/$(TARGET_OS)/config.in
 
-oldconfig:
+oldconfig: $(TOPDIR).config
        mkdir -p $(TOPDIR)include/config
        $(BB_SHELL) scripts/Configure -d sysdeps/$(TARGET_OS)/config.in