1 # attempt to update at build-time
3 INTERFACES=sfa registry slice-manager 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 slice-manager.wsdl aggregate.wsdl sfa.wsdl:
17 registry.wsdl: sfa2wsdl.py
18 PYTHONPATH=../ ./sfa2wsdl.py --registry > $@
20 slice-manager.wsdl: sfa2wsdl.py
21 PYTHONPATH=../ ./sfa2wsdl.py --slice-manager > $@
23 aggregate.wsdl: sfa2wsdl.py
24 PYTHONPATH=../ ./sfa2wsdl.py --aggregate > $@
27 PYTHONPATH=../ ./sfa2wsdl.py --registry --slice-manager --aggregate > $@
30 #################### install
31 # DESTDIR set but the calling Makefile in ../
32 INSTALL_PATH=/var/www/html/wsdl
33 INSTALLED=$(foreach wsdl,$(WSDLS),$(DESTDIR)$(INSTALL_PATH)/$(wsdl))
37 $(DESTDIR)$(INSTALL_PATH):
38 install -d -m 0755 $(DESTDIR)$(INSTALL_PATH)
40 $(DESTDIR)$(INSTALL_PATH)/%: wsdl=$(notdir $@)
41 $(DESTDIR)$(INSTALL_PATH)/%: $(DESTDIR)$(INSTALL_PATH) %
42 install -c -m 0755 $(wsdl) $@
44 #################### clean
51 .PHONY: all clean install install-clean
53 #################### generate html document
54 %.html: %.wsdl wsdl2html.xsl
55 xsltproc $(XSLTFLAGS) wsdl2html.xsl $*.wsdl > $@ || rm $@
62 $(foreach wsdl,$(WSDLS), cp $(wsdl) $(wsdl).bak;)
63 $(foreach html,$(HTMLS), cp $(html) $(html).bak;)
66 $(foreach wsdl,$(WSDLS), diff $(wsdl) $(wsdl).bak;)
67 $(foreach html,$(HTMLS), diff $(html) $(html).bak;)