X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=wsdl%2FMakefile;h=c6994328467b6b4c0b97b730d1ed2aa01983b0b9;hb=00ff8b0b1ae756d4ea5beb042f29243dc63a9fd8;hp=d8d3138b07f891ec5c63b284846fd069afaa5090;hpb=95d02354ccebac2586b82d285c1b43828bd06ff1;p=sfa.git diff --git a/wsdl/Makefile b/wsdl/Makefile index d8d3138b..c6994328 100644 --- a/wsdl/Makefile +++ b/wsdl/Makefile @@ -1,2 +1,49 @@ -all: sfa.wsdl - PYTHONPATH=../ ./gw2wsdl.py --registry --sm --am > sfa.wsdl +# attempt to update at build-time + +WSDLS = sfa.wsdl registry.wsdl slice-manager.wsdl aggregate.wsdl + +all: $(WSDLS) + +# 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 > $@ + +slice-manager.wsdl: + PYTHONPATH=../ ./sfa2wsdl.py --slice-manager > $@ + +aggregate.wsdl: + PYTHONPATH=../ ./sfa2wsdl.py --aggregate > $@ + +sfa.wsdl: + PYTHONPATH=../ ./sfa2wsdl.py --registry --slice-manager --aggregate > $@ +endif + +#################### install +# DESTDIR set but the calling Makefile in ../ +INSTALL_PATH=/var/www/html/wsdl +INSTALLED=$(foreach wsdl,$(WSDLS),$(DESTDIR)$(INSTALL_PATH)/$(wsdl)) + +install: $(INSTALLED) + +$(DESTDIR)$(INSTALL_PATH): + install -d -m 0755 $(DESTDIR)$(INSTALL_PATH) + +$(DESTDIR)$(INSTALL_PATH)/%: wsdl=$(notdir $@) +$(DESTDIR)$(INSTALL_PATH)/%: $(DESTDIR)$(INSTALL_PATH) % + install -c -m 0755 $(wsdl) $@ + +#################### clean +clean: + rm -f *wsdl + +install-clean: + rm -f $(INSTALLED) + +.PHONY: all clean install install-clean +