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