History

kbuild: refactor script/kconfig/Makefile

Now it is harmless to add all host programs to hostprogs-y.

Masahiro Yamada committed 12 years ago

Commit 022af621 parent 97e32261 file · +3 −31Browse files

Unified · Split

scripts/kconfig/Makefile+3−31
@@ -157,35 +157,7 @@ qconf-cxxobjs := qconf.o · 156 unmodified lines
157157 qconf-objs := zconf.tab.o
158158 gconf-objs := gconf.o zconf.tab.o
159159
160−hostprogs-y := conf
161−
162−ifeq ($(MAKECMDGOALS),nconfig)
163− hostprogs-y += nconf
164−endif
165−
166−ifeq ($(MAKECMDGOALS),menuconfig)
167− hostprogs-y += mconf
168−endif
169−
170−ifeq ($(MAKECMDGOALS),update-po-config)
171− hostprogs-y += kxgettext
172−endif
173−
174−ifeq ($(MAKECMDGOALS),xconfig)
175− qconf-target := 1
176−endif
177−ifeq ($(MAKECMDGOALS),gconfig)
178− gconf-target := 1
179−endif
180−
181−
182−ifeq ($(qconf-target),1)
183− hostprogs-y += qconf
184−endif
185−
186−ifeq ($(gconf-target),1)
187− hostprogs-y += gconf
188−endif
160+hostprogs-y := conf nconf mconf kxgettext qconf gconf
189161
190162 clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
191163 clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h
@@ -224,7 +196,7 @@ HOSTLOADLIBES_nconf = $(shell \ · 32 unmodified lines
224196 || echo "-lmenu -lpanel -lncurses" )
225197 $(obj)/qconf.o: $(obj)/.tmp_qtcheck
226198
227−ifeq ($(qconf-target),1)
199+ifeq ($(MAKECMDGOALS),xconfig)
228200 $(obj)/.tmp_qtcheck: $(src)/Makefile
229201 -include $(obj)/.tmp_qtcheck
230202
@@ -281,7 +253,7 @@ endif · 50 unmodified lines
281253
282254 $(obj)/gconf.o: $(obj)/.tmp_gtkcheck
283255
284−ifeq ($(gconf-target),1)
256+ifeq ($(MAKECMDGOALS),gconfig)
285257 -include $(obj)/.tmp_gtkcheck
286258
287259 # GTK needs some extra effort, too...

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t