correct table format
[PyX.git] / faq / Makefile
blob4b3d940cc259b84c7d7318f841c65b062dd7bdb1
1 PYTHON ?= python
2 PDFLATEX ?= pdflatex
3 LATEX ?= latex
5 default: pyxfaq.pdf
7 clean: partclean
8 -rm pyxfaq.pdf glifaq.pdf glifaq.sty
10 partclean:
11 -rm *.aux *.out *.toc *.log *.glo *.idx
12 -rm pyxversion.tex pyxdate.tex
14 all: pdf
16 pdf: pyxfaq.pdf glifaq.pdf
18 pyxfaq.pdf: pyxfaq.tex pyxversion.tex pyxdate.tex glifaq.sty
19 $(PDFLATEX) pyxfaq
20 $(PDFLATEX) pyxfaq
21 $(PDFLATEX) pyxfaq
23 glifaq.sty: glifaq.dtx glifaq.ins
24 $(LATEX) glifaq.ins
26 glifaq.pdf: glifaq.dtx
27 $(PDFLATEX) glifaq.dtx
28 $(PDFLATEX) glifaq.dtx
30 pyxversion.tex: ../pyx/version.py
31 $(PYTHON) -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.version+'%'" > pyxversion.tex
33 pyxdate.tex: ../pyx/version.py
34 $(PYTHON) -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.date+'%'" > pyxdate.tex
36 publicserver = shell.sourceforge.net
37 publicpath = /home/groups/p/py/pyx/htdocs
39 public:
40 @bash -c 'yn=""; while [ "x"$$yn != "xy" ]; do echo -n "upload pyxfaq.pdf? [y/n] "; read yn; if [ "x"$$yn == "xn" ]; then exit 1; fi; done'
41 scp pyxfaq.pdf $(publicserver):$(publicpath)
42 -ssh $(publicserver) "cd $(publicpath); chmod -fR g+w pyxfaq.pdf"
44 tipapyks.pdf: tipa.py
45 $(PYTHON) tipa.py "pYks" "pyks"
47 tipapyx.pdf: tipa.py
48 $(PYTHON) tipa.py "pYx" "pyx"
50 tipapych.pdf: tipa.py
51 $(PYTHON) tipa.py "pY\\c c" "pych"