From: Bernhard Reutner-Fischer Date: Fri, 27 Jul 2007 12:37:30 +0000 (-0000) Subject: - fix building mconf with curses flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=153b1beaeb02e1d4780428c0387b7003644e402b;p=buildroot.git - fix building mconf with curses flags - make sure to rm .config when the first 'make menuconfig' was interrupted and thus no .config.cmd was created. --- diff --git a/Makefile b/Makefile index 61c776da91..f069777975 100644 --- a/Makefile +++ b/Makefile @@ -320,9 +320,11 @@ $(CONFIG)/mconf: menuconfig: $(CONFIG)/mconf @-mkdir -p $(CONFIG)/buildroot-config - @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ + @if ! KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \ KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \ - $(CONFIG)/mconf $(CONFIG_CONFIG_IN) + $(CONFIG)/mconf $(CONFIG_CONFIG_IN); then \ + test -f .config.cmd || rm -f .config; \ + fi config: $(CONFIG)/conf @-mkdir -p $(CONFIG)/buildroot-config diff --git a/package/config/Makefile b/package/config/Makefile index 3b43849206..f25b704e6a 100644 --- a/package/config/Makefile +++ b/package/config/Makefile @@ -5,7 +5,7 @@ top_builddir=../../ srctree := . include Makefile.kconfig -HOSTCFLAGS+=-Dinline="" -include foo.h +#HOSTCFLAGS+=-Dinline="" -include foo.h -include .depend .depend: $(wildcard *.h *.c) $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > .depend 2>/dev/null || : diff --git a/package/config/Makefile.kconfig b/package/config/Makefile.kconfig index 7e7e147875..016397f669 100644 --- a/package/config/Makefile.kconfig +++ b/package/config/Makefile.kconfig @@ -120,6 +120,9 @@ hostprogs-y := conf qconf gconf kxgettext ifeq ($(MAKECMDGOALS),menuconfig) hostprogs-y += mconf endif +ifeq ($(findstring mconf,$(MAKECMDGOALS)),mconf) + hostprogs-y += mconf +endif ifeq ($(MAKECMDGOALS),xconfig) qconf-target := 1