aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-08-19 03:34:22 -0400
committerMichal Marek <mmarek@suse.cz>2014-08-19 04:26:20 -0400
commit022af62d0190e1e3db63c19aeb5f51ae0612cd71 (patch)
tree729a2f411eef3b237926f9a791e6cc10b83d16a9 /scripts
parent97e3226e6e984c8cd9bed47010f30827a3ce816a (diff)
kbuild: refactor script/kconfig/Makefile
Now it is harmless to add all host programs to hostprogs-y. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/Makefile34
1 files changed, 3 insertions, 31 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 9c4d2412fb72..76f6171768e4 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -157,35 +157,7 @@ qconf-cxxobjs := qconf.o
157qconf-objs := zconf.tab.o 157qconf-objs := zconf.tab.o
158gconf-objs := gconf.o zconf.tab.o 158gconf-objs := gconf.o zconf.tab.o
159 159
160hostprogs-y := conf 160hostprogs-y := conf nconf mconf kxgettext qconf gconf
161
162ifeq ($(MAKECMDGOALS),nconfig)
163 hostprogs-y += nconf
164endif
165
166ifeq ($(MAKECMDGOALS),menuconfig)
167 hostprogs-y += mconf
168endif
169
170ifeq ($(MAKECMDGOALS),update-po-config)
171 hostprogs-y += kxgettext
172endif
173
174ifeq ($(MAKECMDGOALS),xconfig)
175 qconf-target := 1
176endif
177ifeq ($(MAKECMDGOALS),gconfig)
178 gconf-target := 1
179endif
180
181
182ifeq ($(qconf-target),1)
183 hostprogs-y += qconf
184endif
185
186ifeq ($(gconf-target),1)
187 hostprogs-y += gconf
188endif
189 161
190clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck 162clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
191clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h 163clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
@@ -224,7 +196,7 @@ HOSTLOADLIBES_nconf = $(shell \
224 || echo "-lmenu -lpanel -lncurses" ) 196 || echo "-lmenu -lpanel -lncurses" )
225$(obj)/qconf.o: $(obj)/.tmp_qtcheck 197$(obj)/qconf.o: $(obj)/.tmp_qtcheck
226 198
227ifeq ($(qconf-target),1) 199ifeq ($(MAKECMDGOALS),xconfig)
228$(obj)/.tmp_qtcheck: $(src)/Makefile 200$(obj)/.tmp_qtcheck: $(src)/Makefile
229-include $(obj)/.tmp_qtcheck 201-include $(obj)/.tmp_qtcheck
230 202
@@ -281,7 +253,7 @@ endif
281 253
282$(obj)/gconf.o: $(obj)/.tmp_gtkcheck 254$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
283 255
284ifeq ($(gconf-target),1) 256ifeq ($(MAKECMDGOALS),gconfig)
285-include $(obj)/.tmp_gtkcheck 257-include $(obj)/.tmp_gtkcheck
286 258
287# GTK needs some extra effort, too... 259# GTK needs some extra effort, too...