[unique] [build] Use a variable to hold the D-Bus XML file



commit f6b609721d86ef2edaf1edd976032a557fbc7c1a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Jun 14 10:39:38 2009 +0100

    [build] Use a variable to hold the D-Bus XML file

 unique/dbus/Makefile.am |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/unique/dbus/Makefile.am b/unique/dbus/Makefile.am
index 79f0e03..eef9784 100644
--- a/unique/dbus/Makefile.am
+++ b/unique/dbus/Makefile.am
@@ -10,6 +10,8 @@ LDADD = $(UNIQUE_LIBS) $(DBUS_LIBS)
 
 noinst_LTLIBRARIES = libunique-dbus.la
 
+unique_dbus_xml = $(srcdir)/uniquebackend-dbus.xml
+
 BUILT_SOURCES =	uniquebackend-bindings.h uniquebackend-glue.h
 
 libunique_dbus_la_SOURCES = 	\
@@ -25,17 +27,18 @@ libunique_dbus_la_CFLAGS =	\
 	$(MAINTAINER_CFLAGS)	\
 	$(DBUS_CFLAGS)
 
-uniquebackend-bindings.h: uniquebackend-dbus.xml $(DBUS_BINDING_TOOL)
+uniquebackend-bindings.h: $(unique_dbus_xml) $(DBUS_BINDING_TOOL)
 	$(QUIET_GEN)$(DBUS_BINDING_TOOL) \
 		--mode=glib-server \
 		--output=$@ \
 		--prefix=uniquebackend \
-	uniquebackend-dbus.xml
-uniquebackend-glue.h: uniquebackend-dbus.xml $(DBUS_BINDING_TOOL)
+	$(unique_dbus_xml)
+
+uniquebackend-glue.h: $(unique_dbus_xml) $(DBUS_BINDING_TOOL)
 	$(QUIET_GEN)$(DBUS_BINDING_TOOL) \
 		--mode=glib-client \
 		--output=$@ \
 		--prefix=uniquebackend \
-	uniquebackend-dbus.xml
+	$(unique_dbus_xml)
 
-EXTRA_DIST = uniquebackend-dbus.xml
+EXTRA_DIST = $(unique_dbus_xml)



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