test trafo application in draw
[PyX/mjg.git] / manual / Makefile
blob2d475428c8b127d302972eb0129c843660eb20ec
1 # You need mkhowto from the python distribution for creating this manual.
2 # Get a copy of a current python source archive and make a symbolic link
3 # from <whatever>/Python-x.x.x/Doc/tools/mkhowto into this directory.
4 # Furthermore you need tex, latex2html and a few other things to build
5 # the manual (see the python documentation about creating documentations
6 # for details).
8 default:dvi
10 clean:
11 -rm -fr manual.dvi manual.ps manual.pdf *.eps *.png *.aux manual
13 all:
14 make clean
15 make html
16 make pdf
17 make dvi
18 make ps
20 src=$(wildcard *.tex) pyxversion.tex pyxdate.tex
22 dvi:manual.dvi
23 ps:manual.ps
24 pdf:manual.pdf
25 html:manual/manual.html
27 manual.pdf: $(src) png
28 #for index-with-own-hyperrefs debugging, anybody interested?
29 #./mkhowto --a4 --pdf --keep manual.tex
30 ./mkhowto --a4 --pdf manual.tex
32 manual.ps: manual.dvi
33 dvips -o manual.ps manual.dvi
35 manual.dvi: $(src) eps
36 ./mkhowto --a4 --dvi manual.tex
38 manual/manual.html: $(src) eps
39 # move pdf png's out of the way
40 -rm -f *.png
41 ./mkhowto --image-type png --favicon "/pyx.ico" \
42 --up-link "/" --up-title "PyX homepage" \
43 --html manual.tex
45 pyxversion.tex: ../pyx/version.py
46 python -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.version+'%'" > pyxversion.tex
48 pyxdate.tex: ../pyx/version.py
49 python -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.date+'%'" > pyxdate.tex
51 eps: $(patsubst %.py, %.eps, $(wildcard *.py))
52 png: $(patsubst %.py, %.png, $(wildcard *.py))
54 %.eps: %.py
55 export PYTHONPATH=$(PWD)/.. ; python $^
57 %.png: %.eps
58 gs -dEPSCrop -dNOPAUSE -dQUIET -dBATCH -sDEVICE=png16m -sOutputFile=$@ -r600 $^