prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / www / Makefile
blobcfba63c99644706dca1bdd2cabe79378b1ae1191
1 PYTHON ?= python3
3 default: build
5 publicserver = web.sourceforge.net
6 publicpath = /home/groups/p/py/pyx/htdocs
8 all:
9 make clean
10 make build
12 clean:
13 rm -r build
15 public:
16 scp -oCompression=yes -r build/* $(publicserver):$(publicpath)
18 build: copy html
20 copy:
21 mkdir -p build
22 cp main.css build
23 cp *.png *.ico build
24 cp png/*.png ../manual/_build/latex/manual.pdf ../faq/_build/latex/pyxfaq.pdf build
25 cp -r ../manual/_build/html build/manual
26 cp -r ../manual/_build/html/manual.html build/manual/index.html
27 cp -r ../faq/_build/html build/pyxfaq
28 for d in "" $$(grep / ../examples/INDEX); \
29 do \
30 mkdir -p build/examples/$$d; \
31 for t in png py ipynb jpg dat eps pdf svg; \
32 do \
33 cp ../examples/$$d*.$$t build/examples/$$d 2> /dev/null; \
34 done; \
35 done; \
37 html:
38 $(PYTHON) pt2html.py