do not use zope's pagetemplatefile anymore as it strips the content type. reinsert...
[PyX.git] / www / Makefile
blob102800a1fd9210a262fbf32956d400926a1059ed
1 PYTHON ?= python
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 s in examples gallery; \
29 do \
30 for d in "" $$(grep / ../$$s/INDEX); \
31 do \
32 mkdir -p build/$$s/$$d; \
33 for t in png py jpg dat eps pdf; \
34 do \
35 cp ../$$s/$$d*.$$t build/$$s/$$d 2> /dev/null; \
36 done; \
37 done; \
38 done
40 html:
41 $(PYTHON) pt2html.py