[gnome-screenshot] build: generate GResource file list automatically
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] build: generate GResource file list automatically
- Date: Mon, 25 Mar 2013 15:08:35 +0000 (UTC)
commit d04d1ebf137f347fcdb303d75ee1c411ba616601
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Mar 25 11:03:46 2013 -0400
build: generate GResource file list automatically
src/Makefile.am | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 73d65bc..e375285 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,15 +11,10 @@ bin_PROGRAMS = \
gnome-screenshot \
$(NULL)
-ui_files = \
- screenshot-app-menu.ui \
- screenshot-dialog.ui \
- $(NULL)
-
-screenshot-resources.c: gnome-screenshot.gresource.xml $(ui_files)
+resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies
$(srcdir)/gnome-screenshot.gresource.xml)
+screenshot-resources.c: gnome-screenshot.gresource.xml $(resource_files)
$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name
screenshot $(srcdir)/gnome-screenshot.gresource.xml
-
-screenshot-resources.h: gnome-screenshot.gresource.xml $(ui_files)
+screenshot-resources.h: gnome-screenshot.gresource.xml $(resource_files)
$(AM_V_GEN)glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name
screenshot $(srcdir)/gnome-screenshot.gresource.xml
BUILT_SOURCES = \
@@ -84,15 +79,15 @@ EXTRA_DIST = \
$(gnome_screenshot_in_files) \
$(man_MANS) \
$(convert_DATA) \
- $(ui_files) \
+ $(resource_files) \
gnome-screenshot.gresource.xml \
$(NULL)
CLEANFILES = \
- $(BUILT_SOURCES) \
- $(gsettings_SCHEMAS) \
- $(gnome_screenshot_DATA) \
- $(sys_DATA)
+ $(BUILT_SOURCES) \
+ $(gsettings_SCHEMAS) \
+ $(gnome_screenshot_DATA) \
+ $(NULL)
dist-hook:
cd $(distdir) ; rm -f $(CLEANFILES)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]