add some remarks on attributes
[PyX/mjg.git] / www / Makefile
blob95be6b6c3d58b068d25d88d4f68f28d8bad0755a
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 -r icons 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 dat eps pdf; \
31 do \
32 if [[ -x ../examples/$$d*.$$s ]] ; \
33 then \
34 cp ../examples/$$d*.$$s build/examples/$$d; \
35 fi; \
36 done; \
37 done
38 PYTHONPATH=~/bin/python/Zope3/src ./pt2html.py
40 always:
41 @# just ensure to always build new even when the directory already exists