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