2018-09-19 13:36:15 +02:00
|
|
|
Index: kconfig/Makefile
|
2010-08-21 15:59:10 +02:00
|
|
|
===================================================================
|
2018-09-19 13:36:15 +02:00
|
|
|
--- kconfig.orig/Makefile
|
|
|
|
+++ kconfig/Makefile
|
2018-10-29 00:09:52 +01:00
|
|
|
@@ -205,7 +205,35 @@ qconf-cxxobjs := qconf.o
|
2018-09-19 13:36:15 +02:00
|
|
|
qconf-objs := zconf.tab.o
|
|
|
|
gconf-objs := gconf.o zconf.tab.o
|
2012-01-13 12:48:28 +01:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
-hostprogs-y := conf nconf mconf kxgettext qconf gconf
|
|
|
|
+hostprogs-y := conf
|
|
|
|
+
|
2012-01-13 12:48:28 +01:00
|
|
|
+ifeq ($(MAKECMDGOALS),nconf)
|
2018-09-19 13:36:15 +02:00
|
|
|
+ hostprogs-y += nconf
|
|
|
|
+endif
|
|
|
|
+
|
2012-01-13 12:48:28 +01:00
|
|
|
+ifeq ($(MAKECMDGOALS),mconf)
|
2018-09-19 13:36:15 +02:00
|
|
|
+ hostprogs-y += mconf
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(MAKECMDGOALS),update-po-config)
|
|
|
|
+ hostprogs-y += kxgettext
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(MAKECMDGOALS),qconf)
|
|
|
|
+ qconf-target := 1
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(MAKECMDGOALS),gconf)
|
|
|
|
+ gconf-target := 1
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(qconf-target),1)
|
|
|
|
+ hostprogs-y += qconf
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+ifeq ($(gconf-target),1)
|
|
|
|
+ hostprogs-y += gconf
|
|
|
|
+endif
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
targets += zconf.lex.c
|
|
|
|
clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
|
2018-10-29 00:09:52 +01:00
|
|
|
@@ -243,7 +271,7 @@ HOSTLOADLIBES_nconf = $(shell \
|
|
|
|
|| echo "-lmenu -lpanel -lncurses" )
|
2018-09-19 13:36:15 +02:00
|
|
|
$(obj)/qconf.o: $(obj)/.tmp_qtcheck
|
2012-01-13 12:48:28 +01:00
|
|
|
|
|
|
|
-ifeq ($(MAKECMDGOALS),xconfig)
|
|
|
|
+ifeq ($(MAKECMDGOALS),qconf)
|
2018-09-19 13:36:15 +02:00
|
|
|
$(obj)/.tmp_qtcheck: $(src)/Makefile
|
|
|
|
-include $(obj)/.tmp_qtcheck
|
|
|
|
|
2018-10-29 00:09:52 +01:00
|
|
|
@@ -270,9 +298,8 @@ $(obj)/.tmp_qtcheck:
|
|
|
|
echo "KC_QT_MOC=$$moc" >> $@
|
2010-08-21 15:59:10 +02:00
|
|
|
endif
|
2018-09-19 13:36:15 +02:00
|
|
|
|
2012-01-13 12:48:28 +01:00
|
|
|
+ifeq ($(MAKECMDGOALS),gconf)
|
2018-09-19 13:36:15 +02:00
|
|
|
$(obj)/gconf.o: $(obj)/.tmp_gtkcheck
|
|
|
|
-
|
|
|
|
-ifeq ($(MAKECMDGOALS),gconfig)
|
|
|
|
-include $(obj)/.tmp_gtkcheck
|
|
|
|
|
|
|
|
# GTK+ needs some extra effort, too...
|
2018-10-29 00:09:52 +01:00
|
|
|
@@ -300,11 +327,8 @@ $(obj)/zconf.tab.o: $(obj)/zconf.lex.c
|
2018-09-19 13:36:15 +02:00
|
|
|
|
|
|
|
$(obj)/qconf.o: $(obj)/qconf.moc
|
2018-10-29 00:09:52 +01:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
-quiet_cmd_moc = MOC $@
|
|
|
|
- cmd_moc = $(KC_QT_MOC) -i $< -o $@
|
|
|
|
-
|
|
|
|
$(obj)/%.moc: $(src)/%.h $(obj)/.tmp_qtcheck
|
|
|
|
- $(call cmd,moc)
|
|
|
|
+ $(KC_QT_MOC) -i $< -o $@
|
2010-08-21 15:59:10 +02:00
|
|
|
|
2018-09-19 13:36:15 +02:00
|
|
|
# Extract gconf menu items for i18n support
|
|
|
|
$(obj)/gconf.glade.h: $(obj)/gconf.glade
|