- correct slots
[PyX.git] / manual / Makefile
bloba5c7abdb125cb30e7d609788ac4d7c029a1378ad
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 *.eps *.pdf *.aux *.out *.toc *.log manual
13 all:
14 make clean
15 make html
16 make pdf
17 make dvi
19 src=$(wildcard *.tex) pyxversion.tex pyxdate.tex
21 dvi: manual.dvi
22 pdf: manual.pdf
23 html: manual/manual.html
25 manual.pdf: $(src) pdf_figs
26 #for index-with-own-hyperrefs debugging, anybody interested?
27 #./mkhowto --a4 --pdf --keep manual.tex
28 ./mkhowto --a4 --pdf manual.tex
30 manual.dvi: $(src) eps_figs
31 ./mkhowto --a4 --dvi manual.tex
33 manual/manual.html: $(src) eps_figs
34 ./mkhowto --image-type png --favicon "/pyx.ico" \
35 --up-link "/" --up-title "PyX homepage" \
36 --html manual.tex
38 pyxversion.tex: ../pyx/version.py
39 python -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.version+'%'" > pyxversion.tex
41 pyxdate.tex: ../pyx/version.py
42 python -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.date+'%'" > pyxdate.tex
44 eps_figs: $(patsubst %.py, %.eps, $(wildcard *.py))
46 pdf_figs: $(patsubst %.py, %.pdf, $(wildcard *.py))
48 %.eps: %.py
49 export PYTHONPATH=$(CURDIR)/.. ; python $^
51 %.pdf: %.py
52 export PYTHONPATH=$(CURDIR)/.. ; python $^