[gnome-documents] build: cleanup GResource dependency generation



commit a53396a88a26d229f27d7cc43f0a878b573c2dc1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jan 14 11:53:01 2013 -0500

    build: cleanup GResource dependency generation
    
    - make sure to use --sourcedir=$(srcdir)
    - use the generated dependency list to add files to EXTRA_DIST instead
      of doing it manually

 src/Makefile.am |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index b015e5a..f8d7966 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -41,13 +41,10 @@ include Makefile-lib.am
 include Makefile-miner.am
 include Makefile-js.am
 
-gnome-documents.gresource: gnome-documents.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies $(srcdir)/gnome-documents.gresource.xml)
+resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/gnome-documents.gresource.xml)
+gnome-documents.gresource: gnome-documents.gresource.xml $(resource_files)
 	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<
-EXTRA_DIST += gnome-documents.gresource.xml \
-	resources/app-menu.ui \
-	resources/preview-menu.ui \
-	resources/selection-menu.ui \
-	resources/thumbnail-frame.png
+EXTRA_DIST += gnome-documents.gresource.xml $(resource_files)
 
 resourcedir = $(pkgdatadir)
 resource_DATA = gnome-documents.gresource



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]