From: nbd Date: Sat, 7 Apr 2007 11:03:05 +0000 (+0000) Subject: fix menuconfig X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/81a817a5e3df246ca87520ee40a6ec00444fe5eb fix menuconfig git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6881 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/Makefile b/Makefile index fffc3bf5d..d7e458559 100644 --- a/Makefile +++ b/Makefile @@ -90,9 +90,9 @@ oldconfig: scripts/config/conf tmp/.config-target.in tmp/.config-package.in FORC $< -o Config.in menuconfig: scripts/config/mconf tmp/.config-target.in tmp/.config-package.in FORCE - @[ -f .config ] || { \ - [ -e $(HOME)/.openwrt/defconfig ] && cp $(HOME)/.openwrt/defconfig .config; \ - } + @if [ \! -f .config -a -e $(HOME)/.openwrt/defconfig ]; then \ + cp $(HOME)/.openwrt/defconfig .config; \ + fi $< Config.in kernel_menuconfig: .config FORCE