summaryrefslogtreecommitdiff
path: root/xml/Makefile.am
blob: 9c6ae2fd3575792703f3574c846e5da9f0717d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
tools_dir = $(top_srcdir)/tools

XSLTFLAGS = --nonet --novalid
DROP_NAMESPACE = sed -e 's@xmlns:tp="http://telepathy\.freedesktop\.org/wiki/DbusSpec.extensions-v0"@@g'
DROP_TPTYPE = sed -e 's@tp:type="[^"]*"@@g'

SPECS = \
	Account_Interface_External_Password_Storage.xml \
	Connection_Manager_Interface_Account_Storage.xml \
	$(NULL)


SPECS_GEN = ${SPECS:%.xml=_gen/introspect-%.xml}

all-local: $(SPECS_GEN)

_gen/introspect-%.xml: %.xml $(tools_dir)/spec-to-introspect.xsl
	$(AM_V_at)$(mkdir_p) _gen
	$(AM_V_GEN)$(XSLTPROC) $(XSLTFLAGS) $(tools_dir)/spec-to-introspect.xsl $< \
		| $(DROP_NAMESPACE) > $@

clean-local:
	rm -f $(SPECS_GEN)

EXTRA_DIST = \
	all.xml \
	nmc5.xml \
	generic-types.xml \
	telepathy-types.xml \
	$(SPECS)