remove comment
[PyX/mjg.git] / www / Makefile
blob1db4d977569571a96790a0726a8f0be3562291c6
1 default: build
3 htmlfiles = $(patsubst %.pt, %.html, $(filter-out maintemplate.pt examples.pt, $(wildcard *.pt))) examples/index.html $(patsubst %, examples/%index.html, $(shell grep / ../examples/INDEX))
4 publicserver = shell.sourceforge.net
5 publicpath = /home/groups/p/py/pyx/htdocs
7 all:
8 make clean
9 make build
11 clean:
12 rm -r build
14 public:
15 scp -oCompression=yes -r build/* $(publicserver):$(publicpath)
16 make chmod
18 chmod:
19 -ssh $(publicserver) "cd $(publicpath); chmod -fR g+w *"
21 build: always
22 -mkdir build
23 cp main.css build
24 -cp *.png *.ico build
25 cp png/*.png ../manual/manual.pdf ../faq/pyxfaq.pdf build
26 cp -r ../manual/manual build
27 for d in "" $(shell grep / ../examples/INDEX); \
28 do \
29 mkdir build/examples/$$d; \
30 for s in png py jpg dat eps pdf; \
31 do \
32 cp ../examples/$$d*.$$s build/examples/$$d 2> /dev/null; \
33 done; \
34 done
35 PYTHONPATH=~/bin/python/Zope3/src ./pt2html.py
37 always:
38 @# just ensure to always build new even when the directory already exists