hard-wired html index
[sfa.git] / wsdl / Makefile
index 3367faf..7f6bd2c 100644 (file)
@@ -1,9 +1,19 @@
 # attempt to update at build-time
 
-WSDLS = sfa.wsdl registry.wsdl slice-manager.wsdl aggregate.wsdl 
+INTERFACES=sfa registry slice-manager aggregate
 
-all: $(WSDLS)
+WSDLS = $(foreach interface,$(INTERFACES),$(interface).wsdl)
+HTMLS = $(foreach interface,$(INTERFACES),$(interface).html)
 
+all: $(WSDLS) $(HTMLS)
+
+# temporary: turn off wsdl generation as it is failing
+#TEMPORARY_OFF = yes
+
+ifdef TEMPORARY_OFF
+registry.wsdl slice-manager.wsdl aggregate.wsdl sfa.wsdl:
+       touch $@
+else
 registry.wsdl:
        PYTHONPATH=../ ./sfa2wsdl.py --registry > $@
 
@@ -15,6 +25,7 @@ aggregate.wsdl:
 
 sfa.wsdl:
        PYTHONPATH=../ ./sfa2wsdl.py --registry --slice-manager --aggregate > $@
+endif
 
 #################### install
 # DESTDIR set but the calling Makefile in ../
@@ -31,7 +42,7 @@ $(DESTDIR)$(INSTALL_PATH)/%: $(DESTDIR)$(INSTALL_PATH) %
        install -c -m 0755 $(wsdl) $@
 
 #################### clean
-clean:
+clean::
        rm -f *wsdl
 
 install-clean:
@@ -39,3 +50,10 @@ install-clean:
 
 .PHONY: all clean install install-clean
 
+#################### generate html document
+%.html: %.wsdl wsdl2html.xsl
+       xsltproc $(XSLTFLAGS) wsdl2html.xsl $*.wsdl > $@ || rm $@
+
+clean::
+       rm -f *.html
+