do not divide by None for data.min and/or data.max being None (see patch #2833369)
[PyX/mjg.git] / www / Makefile
blobb75979f7f8fc8566a7e26a2cd36ecbd8c1e66eaf
1 ZOPEDIR ?= $(HOME)/bin/python/Zope3/src
2 PYTHON ?= python
4 default: build
6 publicserver = shell.sourceforge.net
7 publicpath = /home/groups/p/py/pyx/htdocs
9 all:
10 make clean
11 make build
13 clean:
14 rm -r build
16 public:
17 scp -oCompression=yes -r build/* $(publicserver):$(publicpath)
18 make chmod
20 chmod:
21 -ssh $(publicserver) "cd $(publicpath); chmod -fR g+w *"
23 build: copy html
25 copy:
26 mkdir -p build
27 cp main.css build
28 cp *.png *.ico build
29 cp png/*.png ../manual/manual.pdf ../faq/pyxfaq.pdf build
30 cp -r ../manual/manual build
31 for s in examples gallery; \
32 do \
33 for d in "" $$(grep / ../$$s/INDEX); \
34 do \
35 mkdir -p build/$$s/$$d; \
36 for t in png py jpg dat eps pdf; \
37 do \
38 cp ../$$s/$$d*.$$t build/$$s/$$d 2> /dev/null; \
39 done; \
40 done; \
41 done
43 html:
44 PYTHONPATH=$(ZOPEDIR) $(PYTHON) pt2html.py