summaryrefslogtreecommitdiff
path: root/gtk/Makefile.target
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-04-07 00:08:14 +0100
committerVincent Sanders <vince@kyllikki.org>2015-04-07 00:44:35 +0100
commita838fa3ee93c813cc648bbf540639ea7fbbe6189 (patch)
tree22f19950e454562d6984be272f9e73700d516c53 /gtk/Makefile.target
parent05c742df09825079be2d21b8e52726f68cc5343c (diff)
downloadnetsurf-a838fa3ee93c813cc648bbf540639ea7fbbe6189.tar.gz
netsurf-a838fa3ee93c813cc648bbf540639ea7fbbe6189.tar.bz2
Improve split message generation
Changes the way message files are generated to be driven by make as rules rather than from explicit macro calls causing their regeneration every build. A secondary benefit is that errors in message generation actually stop the build instead of being ignored Each frontend will require its filter settings updated to avoid getting the default message filter of "any". Initially gtk has been adapted as proof of concept.
Diffstat (limited to 'gtk/Makefile.target')
-rw-r--r--gtk/Makefile.target7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/Makefile.target b/gtk/Makefile.target
index e69f6c267..23c01457e 100644
--- a/gtk/Makefile.target
+++ b/gtk/Makefile.target
@@ -121,8 +121,14 @@ S_GTK := $(addprefix gtk/,$(S_GTK)) $(addprefix utils/,container.c)
# Note this is deliberately *not* expanded here as common and image
# are not yet available
SOURCES = $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PIXBUF) $(S_GTK)
+
+# The gtk binary target
EXETARGET := nsgtk
+# The filter and target for split messages
+MESSAGES_FILTER=gtk
+MESSAGES_TARGET=gtk/res
+
# ----------------------------------------------------------------------------
# Install target
# ----------------------------------------------------------------------------
@@ -150,7 +156,6 @@ install-gtk:
$(Q)install -m 0644 gtk/res/throbber/*.png $(DESTDIR)$(NETSURF_GTK_RESOURCES)/throbber
$(Q)tar -c -h -C gtk/res -f - themes | tar -xv -C $(DESTDIR)$(NETSURF_GTK_RESOURCES) -f -
$(Q)tar -c -h -C gtk/res -f - $(GTK_TRANSLATIONS_HTML) | tar -xv -C $(DESTDIR)$(NETSURF_GTK_RESOURCES) -f -
- $(call split_install_messages, gtk, $(DESTDIR)$(NETSURF_GTK_RESOURCES))
$(Q)install -m 0644 $(GTK_RESOURCES_LIST) $(DESTDIR)$(NETSURF_GTK_RESOURCES)
# ----------------------------------------------------------------------------