[shotwell/wip/dedeprecate: 2/26] publishing: Fix resource dependencies



commit a411ab5078d24c5966bc63532d2aa0bd61d77816
Author: Jens Georg <mail jensge org>
Date:   Sat Oct 29 02:09:36 2016 +0200

    publishing: Fix resource dependencies
    
    Signed-off-by: Jens Georg <mail jensge org>

 publish.am |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/publish.am b/publish.am
index 81bc711..b74f5b9 100644
--- a/publish.am
+++ b/publish.am
@@ -29,8 +29,17 @@ nodist_plugins_shotwell_publishing_shotwell_publishing_la_SOURCES = \
        plugins/shotwell-publishing/resource.c
 MOSTLYCLEANFILES += plugins/shotwell-publishing/resource.c
 
-plugins/shotwell-publishing/resource.c: 
plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml
-       $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ 
--sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing --generate $<
+PUBLISHING_RESOURCE_FILE := plugins/shotwell-publishing/org.gnome.Shotwell.Publishing.gresource.xml
+
+PUBLISHING_RESOURCE_DEPS = $(shell $(GLIB_COMPILE_RESOURCES) \
+               --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing \
+               --generate-dependencies $(PUBLISHING_RESOURCE_FILE))
+
+plugins/shotwell-publishing/resource.c: $(PUBLISHING_RESOURCE_DEPS) $(PUBLISHING_RESOURCE_FILE)
+       $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) \
+               --target=$@ \
+               --sourcedir=$(abs_top_srcdir)/plugins/shotwell-publishing \
+               --generate $(PUBLISHING_RESOURCE_FILE)
 
 plugins_shotwell_publishing_shotwell_publishing_la_VALAFLAGS = \
        $(COMMON_VALAFLAGS) \


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