~ubuntu-branches/debian/sid/pyx/sid

« back to all changes in this revision

Viewing changes to faq/Makefile

  • Committer: Package Import Robot
  • Author(s): Stuart Prescott
  • Date: 2012-12-17 13:45:12 UTC
  • mfrom: (1.1.4)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20121217134512-u0w6lrgdowsc1sfu
Tags: 0.12.1-1
* New upstream release
* Update maintainer address.
* Update copyright format URL.
* Bump standards version to 3.9.4 (no changes required).
* Drop postinst that was needed for lenny->squeeze upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for Sphinx documentation
 
2
#
 
3
 
1
4
PYTHON ?= python
2
 
PDFLATEX ?= pdflatex
3
 
LATEX ?= latex
4
 
 
5
 
default: pyxfaq.pdf
6
 
 
7
 
clean: partclean
8
 
        -rm pyxfaq.pdf glifaq.pdf glifaq.sty
9
 
 
10
 
partclean:
11
 
        -rm *.aux *.out *.toc *.log *.glo *.idx
12
 
        -rm pyxversion.tex pyxdate.tex
13
 
 
14
 
all: pdf
15
 
 
16
 
pdf: pyxfaq.pdf glifaq.pdf
17
 
 
18
 
pyxfaq.pdf: pyxfaq.tex pyxversion.tex pyxdate.tex glifaq.sty
19
 
        $(PDFLATEX) pyxfaq
20
 
        $(PDFLATEX) pyxfaq
21
 
        $(PDFLATEX) pyxfaq
22
 
 
23
 
glifaq.sty: glifaq.dtx glifaq.ins
24
 
        $(LATEX) glifaq.ins
25
 
 
26
 
glifaq.pdf: glifaq.dtx
27
 
        $(PDFLATEX) glifaq.dtx
28
 
        $(PDFLATEX) glifaq.dtx
29
 
 
30
 
pyxversion.tex: ../pyx/version.py
31
 
        $(PYTHON) -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.version+'%'" > pyxversion.tex
32
 
 
33
 
pyxdate.tex: ../pyx/version.py
34
 
        $(PYTHON) -c "import sys;sys.path[:0]=[\"..\"];import pyx.version;print pyx.version.date+'%'" > pyxdate.tex
35
 
 
36
 
publicserver = shell.sourceforge.net
37
 
publicpath = /home/groups/p/py/pyx/htdocs
38
 
 
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"
43
 
 
44
 
tipapyks.pdf: tipa.py
45
 
        $(PYTHON) tipa.py "pYks" "pyks"
46
 
 
47
 
tipapyx.pdf: tipa.py
48
 
        $(PYTHON) tipa.py "pYx" "pyx"
49
 
 
50
 
tipapych.pdf: tipa.py
51
 
        $(PYTHON) tipa.py "pY\\c c" "pych"
 
5
 
 
6
# You can set these variables from the command line.
 
7
SPHINXOPTS    =
 
8
SPHINXBUILD   = sphinx-build
 
9
PAPER         =
 
10
BUILDDIR      = _build
 
11
 
 
12
# Internal variables.
 
13
PAPEROPT_a4     = -D latex_paper_size=a4
 
14
PAPEROPT_letter = -D latex_paper_size=letter
 
15
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 
16
 
 
17
.PHONY: help clean all html latexpdf
 
18
 
 
19
all: html latexpdf
 
20
        @echo "Done."
 
21
 
 
22
clean:
 
23
        -rm -rf $(BUILDDIR)/* *.eps *.pdf *.png
 
24
 
 
25
html:
 
26
        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 
27
        @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
28
 
 
29
latexpdf:
 
30
        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
 
31
        @echo "Running LaTeX files through pdflatex..."
 
32
        make -C $(BUILDDIR)/latex all-pdf
 
33
        @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."