add html version of manual
[PyX/mjg.git] / www / Makefile
bloba41200db19b0a4fd33173ead939967f18ee1cb92
1 default: build
3 clean:
4 -rm *.html
5 rm -r build
7 all:
8 make clean
9 make build
11 ptfiles = $(filter-out maintemplate.pt, $(wildcard *.pt))
12 htmlfiles = $(patsubst %.pt, %.html, $(ptfiles))
13 imagefiles = valid-html401.png vcss.png pyx.ico
14 cssfiles = main.css
15 builddir = build
16 exampledirs = $(shell cd ..; find examples -type d|grep -v CVS)
17 publicserver = shell.sourceforge.net
18 publicpath = /home/groups/p/py/pyx/htdocs
20 public:
21 make build
22 scp -oCompression=yes -r $(builddir)/* $(publicserver):$(publicpath)
23 -ssh $(publicserver) "cd $(publicpath); chmod -R g+w *"
25 build:
26 make htmlfiles
27 make otherhtml
28 -rm -r $(builddir)
29 mkdir $(builddir)
30 cp $(htmlfiles) $(imagefiles) $(cssfiles) $(builddir)
31 cp png/*.png ../manual/manual.pdf ../faq/pyxfaq.pdf $(builddir)
32 cp -r ../manual/manual $(builddir)
33 echo $(exampledirs)
34 for d in $(exampledirs); do mkdir $(builddir)/$$d; cp ../$$d/*.png ../$$d/*.eps $(builddir)/$$d; done
36 htmlfiles: $(htmlfiles)
38 %.html: %.pt maintemplate.pt pt2html.py
39 PYTHONPATH=/usr/src/ZopeCVS/Zope3/src:~/bin/python/Zope3/src ./pt2html.py $<
41 otherhtml:
42 cd png; make
43 cd ../examples; make html
44 cd ../manual; make pdf
45 cd ../faq; make