Makefile: make examples/toto-gallery exports example toto to...

Makefile: make examples/toto-gallery exports example toto to /users/toccata/filliatr/toccata/web/gallery/
parent d6eeab71
......@@ -443,6 +443,19 @@ gallery::
cd ..; \
done
%-gallery::
@if test "$(GALLERYDIR)" = ""; then echo "set GALLERYDIR first"; exit 1; fi
x=$*/why3session.xml; \
d=`dirname $$x`; \
f=`basename $$d`; \
why3session html $$x; \
echo "exporting $$f"; \
mkdir -p $(GALLERYDIR)/$$f; \
cp examples/$$f.mlw examples/$$f/$$f.html $(GALLERYDIR)/$$f/; \
rm -f $(GALLERYDIR)/$$f/$$f.zip; \
cd examples/; \
zip -r $(GALLERYDIR)/$$f/$$f.zip $$f.mlw $$f/$$f.html $$f
########
# XML DTD validation
########
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment