Debian Codegraph @

Makefile

raw symbols SCIP
1 # Makefile for Sphinx documentation
2 # with additions for building pyds9
3 #
4 VERSION = 1.8
5
6 PYDS9 = /proj/rd/www/pyds9
7 FTP = /proj/rd/ftp
8 TAR = pyds9-$(VERSION).tar.gz
9
10 # You can set these variables from the command line.
11 SPHINXOPTS =
12 SPHINXBUILD = $$HOME/python/bin/sphinx-build
13 PAPER =
14
15 # Internal variables.
16 PAPEROPT_a4 = -D latex_paper_size=a4
17 PAPEROPT_letter = -D latex_paper_size=letter
18 ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
19
20 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
21
22 # When changing documentation using sphinx-build:
23 # documentation params are in conf.py (e.g. release version)
24 # documentation markup is index.rst
25 # When making a new release, change version in setup.py and ds9.py
26
27 help:
28 @echo "Please use \`make <target>' where <target> is one of"
29 @echo " install to install pyds9"
30 @echo " sdist to make pyds9 source tar file"
31 @echo " html to make standalone HTML files"
32 @echo " intallhtml to install HTML files in /proj/rd/www/ds9"
33 @echo " release to run install, sdist, html, and installhtml"
34 @echo " -------------------- not used ------------------------"
35 @echo " dirhtml to make HTML files named index.html in directories"
36 @echo " pickle to make pickle files"
37 @echo " json to make JSON files"
38 @echo " htmlhelp to make HTML files and a HTML help project"
39 @echo " qthelp to make HTML files and a qthelp project"
40 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
41 @echo " changes to make an overview of all changed/added/deprecated items"
42 @echo " linkcheck to check all external links for integrity"
43 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
44
45 bclean:
46 @rm -rf _build/*
47
48 clean:
49 @(rm -f *~ foo*; cd xpa && make clean && cd ..;)
50
51 release: clean install sdist html installhtml ftp
52
53 install:
54 @python setup.py install --prefix=$$HOME/python
55
56 sdist:
57 @python setup.py sdist
58
59 html:
60 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
61 @echo
62 @echo "Build finished. The HTML pages are in _build/html."
63
64 installhtml:
65 @(echo skip rm -rf $(PYDS9); \
66 mkdir -p $(PYDS9); \
67 chmod g+s $(PYDS9); \
68 cd _build/html; \
69 tar cf - . | (cd $(PYDS9); tar xf -); \
70 )
71
72 ftp:
73 @(cp -p dist/$(TAR) $(FTP); \
74 chmod 444 dist/$(TAR) \
75 )
76
77 dirhtml:
78 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) _build/dirhtml
79 @echo
80 @echo "Build finished. The HTML pages are in _build/dirhtml."
81
82 pickle:
83 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
84 @echo
85 @echo "Build finished; now you can process the pickle files."
86
87 json:
88 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
89 @echo
90 @echo "Build finished; now you can process the JSON files."
91
92 htmlhelp:
93 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
94 @echo
95 @echo "Build finished; now you can run HTML Help Workshop with the" \
96 ".hhp project file in _build/htmlhelp."
97
98 qthelp:
99 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) _build/qthelp
100 @echo
101 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
102 ".qhcp project file in _build/qthelp, like this:"
103 @echo "# qcollectiongenerator _build/qthelp/pyds9.qhcp"
104 @echo "To view the help file:"
105 @echo "# assistant -collectionFile _build/qthelp/pyds9.qhc"
106
107 latex:
108 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
109 @echo
110 @echo "Build finished; the LaTeX files are in _build/latex."
111 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
112 "run these through (pdf)latex."
113
114 changes:
115 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
116 @echo
117 @echo "The overview file is in _build/changes."
118
119 linkcheck:
120 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
121 @echo
122 @echo "Link check complete; look for any errors in the above output " \
123 "or in _build/linkcheck/output.txt."
124
125 doctest:
126 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest
127 @echo "Testing of doctests in the sources finished, look at the " \
128 "results in _build/doctest/output.txt."