Skip to contentSkip to conversation

Makefile: install gtk message catalogs if CONFIG_GTK=y too, not only =m

PATCH Superseded Michael Tokarev 3 participants 4 messages Apr 14, 2018 – Apr 16, 2018 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: install gtk message catalogs if CONFIG_GTK=y too, not only =m

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 727ef118f3..8644c2e918 100644
@@ -856,7 +856,7 @@ ifneq ($(BLOBS),)
 		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(qemu_datadir)"; \
 	done
 endif
-ifeq ($(CONFIG_GTK),m)
+ifneq ($(filter $(CONFIG_GTK),y m),)
 	$(MAKE) -C po $@
 endif
 	$(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/keymaps"
Signature · 1 line
2.11.0
#1 lore raw

Hi Michael,

Quoted 10 lines · Michael Tokarev
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +0 -0
index 727ef118f3..8644c2e918 100644

Makefile ifneq ($(BLOBS),) · line 859

Quoted 5 lines
Makefile +1 -1
@@ -856,7 +856,7 @@ ifneq ($(BLOBS),)
 		$(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(qemu_datadir)"; \
 	done
 endif
-ifeq ($(CONFIG_GTK),m)
+ifneq ($(filter $(CONFIG_GTK),y m),)

Or simply:

ifdef CONFIG_GTK

Makefile ifneq ($(BLOBS),) · line 862

Quoted 4 lines
Makefile +0 -0
 	$(MAKE) -C po $@
 endif
 	$(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/keymaps"

Regards,

Phil.

#2 lore raw
In reply to Michael Tokarev
Quoted 19 lines · Michael Tokarev
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -2
index 727ef118f3..8644c2e918 100644
@@ -856,7 +856,7 @@ ifneq ($(BLOBS),)
                $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(qemu_datadir)"; \
        done
 endif
-ifeq ($(CONFIG_GTK),m)
+ifneq ($(filter $(CONFIG_GTK),y m),)
        $(MAKE) -C po $@
 endif
        $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/keymaps"
--
Quoted 1 line

2.11.0

"trivial" and "for 2.12" don't make much sense together at this point in the release cycle. Is this important enough to go into rc4, or not?

thanks
-- PMM

#3 lore raw
Quoted 9 lines · Peter Maydell

Makefile ifneq ($(BLOBS),) · line 861

Quoted 4 lines · Michael Tokarev
Makefile +1 -1
-ifeq ($(CONFIG_GTK),m)
+ifneq ($(filter $(CONFIG_GTK),y m),)
        $(MAKE) -C po $@
 endif

"trivial" and "for 2.12" don't make much sense together at this point in the release cycle. Is this important enough to go into rc4, or not?

Well, without this, gtk translations wont be installed. Not a huge issue, especially for the languages where qemu lacks translations, but I still think it is important enough to go to 2.12, or else it'll be a regression.

I've just sent another, simpler version of the same thing.

Thanks,

/mjt