upload FAQ
[PyX/mjg.git] / www / Makefile
blob8922cd239136e74ba71d93a689cf65943000e1ff
1 default: html
3 clean:
4 -rm *.html
6 all:
7 make clean
8 make install
10 ptfiles = $(filter-out maintemplate.pt, $(wildcard *.pt))
11 htmlfiles = $(patsubst %.pt, %.html, $(ptfiles))
12 imagefiles = valid-html401.png vcss.png pyx.ico
13 cssfiles = main.css
14 builddir = build
16 html: $(htmlfiles)
17 cd png; make
19 install: html
20 -mkdir $(builddir)
21 cp $(htmlfiles) $(imagefiles) $(cssfiles) $(builddir)
22 cd png; make
23 cp png/*.png ../examples/*.png ../examples/*/*.png $(builddir)
24 cp ../examples/*.eps ../examples/*/*.eps $(builddir)
25 cp ../manual/manual.pdf $(builddir)
26 cp ../faq/pyxfaq.pdf $(builddir)
27 chmod -R 664 $(builddir)/*
28 scp -oCompression=yes -p -r $(builddir)/* shell.sourceforge.net:/home/groups/p/py/pyx/htdocs
30 %.html: %.pt maintemplate.pt pt2html.py
31 PYTHONPATH=/usr/src/ZopeCVS/Zope3/src:~/bin/python/Zope3/src ./pt2html.py $<