diff options
-rw-r--r-- | Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -160,21 +160,20 @@ $(TOPDIR)include/config.h: | |||
160 | fi; | 160 | fi; |
161 | 161 | ||
162 | $(TOPDIR).config: | 162 | $(TOPDIR).config: |
163 | cp $(TOPDIR)sysdeps/$(TARGET_OS)/defconfig $(TOPDIR).config | 163 | @if [ ! -f $(TOPDIR).config ] ; then \ |
164 | mkdir -p $(TOPDIR)include/config | 164 | cp $(TOPDIR)sysdeps/$(TARGET_OS)/defconfig $(TOPDIR).config; \ |
165 | $(MAKE) -C scripts/lxdialog all | 165 | fi; |
166 | $(BB_SHELL) scripts/Menuconfig sysdeps/$(TARGET_OS)/config.in | ||
167 | 166 | ||
168 | menuconfig: | 167 | menuconfig: $(TOPDIR).config |
169 | mkdir -p $(TOPDIR)include/config | 168 | mkdir -p $(TOPDIR)include/config |
170 | $(MAKE) -C scripts/lxdialog all | 169 | $(MAKE) -C scripts/lxdialog all |
171 | $(BB_SHELL) scripts/Menuconfig sysdeps/$(TARGET_OS)/config.in | 170 | $(BB_SHELL) scripts/Menuconfig sysdeps/$(TARGET_OS)/config.in |
172 | 171 | ||
173 | config: | 172 | config: $(TOPDIR).config |
174 | mkdir -p $(TOPDIR)include/config | 173 | mkdir -p $(TOPDIR)include/config |
175 | $(BB_SHELL) scripts/Configure sysdeps/$(TARGET_OS)/config.in | 174 | $(BB_SHELL) scripts/Configure sysdeps/$(TARGET_OS)/config.in |
176 | 175 | ||
177 | oldconfig: | 176 | oldconfig: $(TOPDIR).config |
178 | mkdir -p $(TOPDIR)include/config | 177 | mkdir -p $(TOPDIR)include/config |
179 | $(BB_SHELL) scripts/Configure -d sysdeps/$(TARGET_OS)/config.in | 178 | $(BB_SHELL) scripts/Configure -d sysdeps/$(TARGET_OS)/config.in |
180 | 179 | ||