summaryrefslogtreecommitdiff
path: root/xml/Makefile.am
blob: 51bd0648fa991c209fdf8eea93d1ddcdb9c559d2 (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
31
32
tools_dir = $(top_srcdir)/tools

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

SPECS = MissionControl.xml \
	Account_Manager.xml \
	Account_Manager_Interface_Creation.xml \
	Account_Manager_Interface_Query.xml \
	Account.xml \
	Account_Interface_Avatar.xml \
	Account_Interface_Compat.xml \
	Account_Interface_Conditions.xml


SPECS_GEN = ${SPECS:.xml=-gen.xml}

all-local: $(SPECS_GEN)

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

clean-local:
	rm -f $(SPECS_GEN)

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