[gnome-system-log] build: generate GResource file list automatically
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-log] build: generate GResource file list automatically
- Date: Mon, 25 Mar 2013 15:22:23 +0000 (UTC)
commit 6cc707975b1ef3895d9c56b159fac6af3e664a2f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Mar 25 11:18:13 2013 -0400
build: generate GResource file list automatically
src/Makefile.am | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index f49b4b3..e2c2349 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,15 +10,10 @@ INCLUDES = \
bin_PROGRAMS = gnome-system-log
-ui_files = \
- logview-app-menu.ui \
- logview-filter.ui \
- logview-gear-menu.ui
-
-logview-resources.c: logview.gresource.xml $(ui_files)
+resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies
$(srcdir)/logview.gresource.xml)
+logview-resources.c: logview.gresource.xml $(resource_files)
$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name
logview $(srcdir)/logview.gresource.xml
-
-logview-resources.h: logview.gresource.xml $(ui_files)
+logview-resources.h: logview.gresource.xml $(resource_files)
$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name
logview $(srcdir)/logview.gresource.xml
BUILT_SOURCES = \
@@ -60,9 +55,9 @@ gnome_system_log_LDADD = \
$(top_builddir)/libgd/libgd.la \
-lm
-EXTRA_DIST = \
- logview.gresource.xml \
- $(ui_files)
+EXTRA_DIST = \
+ $(resource_files) \
+ logview.gresource.xml
CLEANFILES = \
$(BUILT_SOURCES)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]