From a838fa3ee93c813cc648bbf540639ea7fbbe6189 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 7 Apr 2015 00:08:14 +0100 Subject: 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. --- gtk/Makefile.target | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gtk/Makefile.target') 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) # ---------------------------------------------------------------------------- -- cgit v1.2.3