[rygel] build: Look for xml files in srcdir



commit b0a77d0af837c896e428bfe8646c662450209936
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Wed Oct 12 11:39:18 2011 +0200

    build: Look for xml files in srcdir

 data/xml/Makefile.am |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/xml/Makefile.am b/data/xml/Makefile.am
index e1d86b9..db06461 100644
--- a/data/xml/Makefile.am
+++ b/data/xml/Makefile.am
@@ -1,5 +1,5 @@
 xml_in_files = MediaServer2.xml.in \
-	       MediaRenderer2.xml.in \
+               MediaRenderer2.xml.in \
                ContentDirectory.xml.in \
                ConnectionManager.xml.in \
                AVTransport2.xml.in \
@@ -9,8 +9,8 @@ xml_in_files = MediaServer2.xml.in \
 xml_DATA = $(xml_in_files:.xml.in=.xml)
 
 # Strip newlines and leading spaces from XML files as not all devices like them
-$(xml_DATA): $(xml_in_files) Makefile
-	@cat < $(@:.xml=.xml.in) | sed -re "s,^ +,,g" | tr -d "\n" > $@
+%.xml: $(srcdir)/%.xml.in
+	@cat < $< | sed -re "s,^ +,,g" | tr -d "\n" > $@
 
 xmldir = $(datadir)/rygel/xml
 



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