diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2015-10-17 09:13:29 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2015-10-17 09:13:29 +0200 |
commit | 9e2d5dae5e5391682c99abfd2683ea1c1b0cb281 (patch) | |
tree | 6e7d80e04af41b9adefb71840ac73e5b5d43601f /src/fe-gtk/Makefile.am | |
parent | b8e7dfa4baffa4378aee618d66ebfedaa285b235 (diff) |
build: Determine resources-files once instead of three times
Diffstat (limited to 'src/fe-gtk/Makefile.am')
-rw-r--r-- | src/fe-gtk/Makefile.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fe-gtk/Makefile.am b/src/fe-gtk/Makefile.am index 79cc2f32..df91bee8 100644 --- a/src/fe-gtk/Makefile.am +++ b/src/fe-gtk/Makefile.am @@ -46,13 +46,15 @@ hexchat_SOURCES = ascii.c banlist.c chanlist.c chanview.c custom-list.c \ sexy-spell-entry.c textgui.c urlgrab.c userlistgui.c xtext.c hexchat_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/src/common -resources.h: $(top_srcdir)/data/hexchat.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/data --generate-dependencies $(top_srcdir)/data/hexchat.gresource.xml) +resources_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/data --generate-dependencies $(top_srcdir)/data/hexchat.gresource.xml) + +resources.h: $(top_srcdir)/data/hexchat.gresource.xml $(resources_files) $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate-header --manual-register $< -resources.c: $(top_srcdir)/data/hexchat.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/data --generate-dependencies $(top_srcdir)/data/hexchat.gresource.xml) +resources.c: $(top_srcdir)/data/hexchat.gresource.xml $(resources_files) $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(top_srcdir)/data --generate-source --manual-register $< -EXTRA_DIST += $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(top_srcdir)/data $(top_srcdir)/data/hexchat.gresource.xml) +EXTRA_DIST += $(resources_files) if DO_STATIC_ANALYSIS analyze_plists = $(hexchat_SOURCES:%.c=%.plist) |