1 # attempt to update at build-time
3 INTERFACES=sfa registry aggregate
5 WSDLS = $(foreach interface,$(INTERFACES),$(interface).wsdl)
6 HTMLS = $(foreach interface,$(INTERFACES),$(interface).html)
10 # temporary: turn off wsdl generation as it is failing
14 registry.wsdl aggregate.wsdl sfa.wsdl:
17 registry.wsdl: sfa2wsdl.py
18 PYTHONPATH=../ ./sfa2wsdl.py --registry > $@
20 aggregate.wsdl: sfa2wsdl.py
21 PYTHONPATH=../ ./sfa2wsdl.py --aggregate > $@
24 PYTHONPATH=../ ./sfa2wsdl.py --registry --aggregate > $@
27 #################### install
28 # DESTDIR set but the calling Makefile in ../
29 INSTALL_PATH=/var/www/html/wsdl
30 INSTALLED=$(foreach wsdl,$(WSDLS),$(DESTDIR)$(INSTALL_PATH)/$(wsdl))
34 $(DESTDIR)$(INSTALL_PATH):
35 install -d -m 0755 $(DESTDIR)$(INSTALL_PATH)
37 $(DESTDIR)$(INSTALL_PATH)/%: wsdl=$(notdir $@)
38 $(DESTDIR)$(INSTALL_PATH)/%: $(DESTDIR)$(INSTALL_PATH) %
39 install -c -m 0755 $(wsdl) $@
41 #################### clean
48 .PHONY: all clean install install-clean
50 #################### generate html document
51 %.html: %.wsdl wsdl2html.xsl
52 xsltproc $(XSLTFLAGS) wsdl2html.xsl $*.wsdl > $@ || rm $@
59 $(foreach wsdl,$(WSDLS), cp $(wsdl) $(wsdl).bak;)
60 $(foreach html,$(HTMLS), cp $(html) $(html).bak;)
63 $(foreach wsdl,$(WSDLS), diff $(wsdl) $(wsdl).bak;)
64 $(foreach html,$(HTMLS), diff $(html) $(html).bak;)