don't change order of attrs passed to canvas constructor in place
[PyX/mjg.git] / manual / Makefile
blob1be73d0dc27483314c6e31dd7b7f736df701a51c
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 PYTHON ?= python
10 .PHONY: mkhowto
12 default: dvi
14 clean:
15 -rm -fr manual.dvi *.eps *.pdf *.aux *.out *.toc *.log manual mkhowto
17 all:
18 make clean
19 make html
20 make pdf
21 make dvi
23 src=$(wildcard *.tex) pyxversion.tex pyxdate.tex
25 dvi: manual.dvi
26 pdf: manual.pdf
27 html: manual/manual.html
29 mkhowto:
30 ln -sfn `$(PYTHON) -c "import site ; print site.here"`/doc/tools/$@ $@
32 manual.pdf: mkhowto $(src) pdf_figs
33 #for index-with-own-hyperrefs debugging, anybody interested?
34 #./mkhowto --a4 --pdf --keep manual.tex
35 ./mkhowto --a4 --pdf manual.tex
37 manual.dvi: mkhowto $(src) eps_figs
38 ./mkhowto --a4 --dvi manual.tex
40 manual/manual.html: mkhowto $(src) eps_figs
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_figs: $(patsubst %.py, %.eps, $(wildcard *.py))
53 pdf_figs: $(patsubst %.py, %.pdf, $(wildcard *.py))
55 %.eps: %.py
56 export PYTHONPATH=$(CURDIR)/.. ; $(PYTHON) $^
58 %.pdf: %.py
59 export PYTHONPATH=$(CURDIR)/.. ; $(PYTHON) $^