2008-05-28 Mark Doffman <mark.doffman@codethink.co.uk>
[platform/core/uifw/at-spi2-atk.git] / xml / Makefile.am
index ba3c9c6..5654674 100644 (file)
@@ -25,14 +25,17 @@ XML_SPEC= \
        org.freedesktop.atspi.Value.xml
 
 spec.xml: $(XML_SPEC)
-       xsltproc --xinclude ../tools/identity.xsl $< >$@
+       xsltproc --xinclude $(top_srcdir)/tools/identity.xsl $< >$@
 
 EXTRA_DIST = $(XML_SPEC)
 
+BUILT_SOURCES = spec.xml
+CLEANFILES = spec.xml
+
 INTROSPECT_FILES = $(addprefix introspection/,$(patsubst %.xml,%,$(filter org.freedesktop.atspi%,$(XML_SPEC))))
 
 $(INTROSPECT_FILES): introspection/%: %.xml ../tools/spec-to-introspect.xsl
        xsltproc ../tools/spec-to-introspect.xsl $< |sed -e 's@xmlns:tp="http://telepathy\.freedesktop\.org/wiki/DbusSpec.extensions-v0"@@g' >$@
 
-introspectdir = $(pkgdatadir)/dbus
+introspectdir = $(pkgdatadir)/$(DEFAULT_ATSPI_INTROSPECTION_PATH)
 dist_introspect_DATA = $(INTROSPECT_FILES)