@@ -17,75 +17,50 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
17
17
.PHONY : help
18
18
help :
19
19
@echo " Please use \` make <target>' where <target> is one of"
20
- @echo " html to make standalone HTML files"
21
- @echo " dirhtml to make HTML files named index.html in directories"
22
- @echo " singlehtml to make a single large HTML file"
23
- @echo " pickle to make pickle files"
24
- @echo " json to make JSON files"
25
- @echo " htmlhelp to make HTML files and a HTML help project"
26
- @echo " qthelp to make HTML files and a qthelp project"
27
- @echo " applehelp to make an Apple Help Book"
28
- @echo " devhelp to make HTML files and a Devhelp project"
29
- @echo " epub to make an epub"
30
- @echo " epub3 to make an epub3"
31
- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
32
- @echo " latexpdf to make LaTeX files and run them through pdflatex"
33
- @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
34
- @echo " text to make text files"
35
- @echo " man to make manual pages"
36
- @echo " texinfo to make Texinfo files"
37
- @echo " info to make Texinfo files and run them through makeinfo"
38
- @echo " gettext to make PO message catalogs"
39
- @echo " changes to make an overview of all changed/added/deprecated items"
40
- @echo " xml to make Docutils-native XML files"
41
- @echo " pseudoxml to make pseudoxml-XML files for display purposes"
42
- @echo " linkcheck to check all external links for integrity"
43
- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
44
- @echo " coverage to run coverage check of the documentation (if enabled)"
45
- @echo " dummy to check syntax errors of document sources"
20
+ @grep -E ' ^\.PHONY: [a-zA-Z_-]+ .*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = "(: |##)"}; {printf "\033[36m%-30s\033[0m %s\n", $$2, $$3}'
46
21
47
22
.PHONY : clean
48
23
clean :
49
24
rm -rf $(BUILDDIR ) /*
50
25
51
- .PHONY : html
26
+ .PHONY : html # # to make standalone HTML files
52
27
html :
53
28
$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
54
29
@echo
55
30
@echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
56
31
57
- .PHONY : dirhtml
32
+ .PHONY : dirhtml # # to make HTML files named index.html in directories
58
33
dirhtml :
59
34
$(SPHINXBUILD ) -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /dirhtml
60
35
@echo
61
36
@echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
62
37
63
- .PHONY : singlehtml
38
+ .PHONY : singlehtml # # to make a single large HTML file
64
39
singlehtml :
65
40
$(SPHINXBUILD ) -b singlehtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /singlehtml
66
41
@echo
67
42
@echo " Build finished. The HTML page is in $( BUILDDIR) /singlehtml."
68
43
69
- .PHONY : pickle
44
+ .PHONY : pickle # # to make pickle files
70
45
pickle :
71
46
$(SPHINXBUILD ) -b pickle $(ALLSPHINXOPTS ) $(BUILDDIR ) /pickle
72
47
@echo
73
48
@echo " Build finished; now you can process the pickle files."
74
49
75
- .PHONY : json
50
+ .PHONY : json # # to make JSON files
76
51
json :
77
52
$(SPHINXBUILD ) -b json $(ALLSPHINXOPTS ) $(BUILDDIR ) /json
78
53
@echo
79
54
@echo " Build finished; now you can process the JSON files."
80
55
81
- .PHONY : htmlhelp
56
+ .PHONY : htmlhelp # # to make HTML files and a HTML help project
82
57
htmlhelp :
83
58
$(SPHINXBUILD ) -b htmlhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /htmlhelp
84
59
@echo
85
60
@echo " Build finished; now you can run HTML Help Workshop with the" \
86
61
" .hhp project file in $( BUILDDIR) /htmlhelp."
87
62
88
- .PHONY : qthelp
63
+ .PHONY : qthelp # # to make HTML files and a qthelp project
89
64
qthelp :
90
65
$(SPHINXBUILD ) -b qthelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /qthelp
91
66
@echo
@@ -95,7 +70,7 @@ qthelp:
95
70
@echo " To view the help file:"
96
71
@echo " # assistant -collectionFile $( BUILDDIR) /qthelp/Graphene.qhc"
97
72
98
- .PHONY : applehelp
73
+ .PHONY : applehelp # # to make an Apple Help Book
99
74
applehelp :
100
75
$(SPHINXBUILD ) -b applehelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /applehelp
101
76
@echo
@@ -104,7 +79,7 @@ applehelp:
104
79
" ~/Library/Documentation/Help or install it in your application" \
105
80
" bundle."
106
81
107
- .PHONY : devhelp
82
+ .PHONY : devhelp # # to make HTML files and a Devhelp project
108
83
devhelp :
109
84
$(SPHINXBUILD ) -b devhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /devhelp
110
85
@echo
@@ -114,111 +89,111 @@ devhelp:
114
89
@echo " # ln -s $( BUILDDIR) /devhelp $$ HOME/.local/share/devhelp/Graphene"
115
90
@echo " # devhelp"
116
91
117
- .PHONY : epub
92
+ .PHONY : epub # # to make an epub
118
93
epub :
119
94
$(SPHINXBUILD ) -b epub $(ALLSPHINXOPTS ) $(BUILDDIR ) /epub
120
95
@echo
121
96
@echo " Build finished. The epub file is in $( BUILDDIR) /epub."
122
97
123
- .PHONY : epub3
98
+ .PHONY : epub3 # # to make an epub3
124
99
epub3 :
125
100
$(SPHINXBUILD ) -b epub3 $(ALLSPHINXOPTS ) $(BUILDDIR ) /epub3
126
101
@echo
127
102
@echo " Build finished. The epub3 file is in $( BUILDDIR) /epub3."
128
103
129
- .PHONY : latex
104
+ .PHONY : latex # # to make LaTeX files, you can set PAPER=a4 or PAPER=letter
130
105
latex :
131
106
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
132
107
@echo
133
108
@echo " Build finished; the LaTeX files are in $( BUILDDIR) /latex."
134
109
@echo " Run \` make' in that directory to run these through (pdf)latex" \
135
110
" (use \` make latexpdf' here to do that automatically)."
136
111
137
- .PHONY : latexpdf
112
+ .PHONY : latexpdf # # to make LaTeX files and run them through pdflatex
138
113
latexpdf :
139
114
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
140
115
@echo " Running LaTeX files through pdflatex..."
141
116
$(MAKE ) -C $(BUILDDIR ) /latex all-pdf
142
117
@echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
143
118
144
- .PHONY : latexpdfja
119
+ .PHONY : latexpdfja # # to make LaTeX files and run them through platex/dvipdfmx
145
120
latexpdfja :
146
121
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
147
122
@echo " Running LaTeX files through platex and dvipdfmx..."
148
123
$(MAKE ) -C $(BUILDDIR ) /latex all-pdf-ja
149
124
@echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
150
125
151
- .PHONY : text
126
+ .PHONY : text # # to make text files
152
127
text :
153
128
$(SPHINXBUILD ) -b text $(ALLSPHINXOPTS ) $(BUILDDIR ) /text
154
129
@echo
155
130
@echo " Build finished. The text files are in $( BUILDDIR) /text."
156
131
157
- .PHONY : man
132
+ .PHONY : man # # to make manual pages
158
133
man :
159
134
$(SPHINXBUILD ) -b man $(ALLSPHINXOPTS ) $(BUILDDIR ) /man
160
135
@echo
161
136
@echo " Build finished. The manual pages are in $( BUILDDIR) /man."
162
137
163
- .PHONY : texinfo
138
+ .PHONY : texinfo # # to make Texinfo files
164
139
texinfo :
165
140
$(SPHINXBUILD ) -b texinfo $(ALLSPHINXOPTS ) $(BUILDDIR ) /texinfo
166
141
@echo
167
142
@echo " Build finished. The Texinfo files are in $( BUILDDIR) /texinfo."
168
143
@echo " Run \` make' in that directory to run these through makeinfo" \
169
144
" (use \` make info' here to do that automatically)."
170
145
171
- .PHONY : info
146
+ .PHONY : info # # to make Texinfo files and run them through makeinfo
172
147
info :
173
148
$(SPHINXBUILD ) -b texinfo $(ALLSPHINXOPTS ) $(BUILDDIR ) /texinfo
174
149
@echo " Running Texinfo files through makeinfo..."
175
150
make -C $(BUILDDIR ) /texinfo info
176
151
@echo " makeinfo finished; the Info files are in $( BUILDDIR) /texinfo."
177
152
178
- .PHONY : gettext
153
+ .PHONY : gettext # # to make PO message catalogs
179
154
gettext :
180
155
$(SPHINXBUILD ) -b gettext $(I18NSPHINXOPTS ) $(BUILDDIR ) /locale
181
156
@echo
182
157
@echo " Build finished. The message catalogs are in $( BUILDDIR) /locale."
183
158
184
- .PHONY : changes
159
+ .PHONY : changes # # to make an overview of all changed/added/deprecated items
185
160
changes :
186
161
$(SPHINXBUILD ) -b changes $(ALLSPHINXOPTS ) $(BUILDDIR ) /changes
187
162
@echo
188
163
@echo " The overview file is in $( BUILDDIR) /changes."
189
164
190
- .PHONY : linkcheck
165
+ .PHONY : linkcheck # # to check all external links for integrity
191
166
linkcheck :
192
167
$(SPHINXBUILD ) -b linkcheck $(ALLSPHINXOPTS ) $(BUILDDIR ) /linkcheck
193
168
@echo
194
169
@echo " Link check complete; look for any errors in the above output " \
195
170
" or in $( BUILDDIR) /linkcheck/output.txt."
196
171
197
- .PHONY : doctest
172
+ .PHONY : doctest # # to run all doctests embedded in the documentation (if enabled)
198
173
doctest :
199
174
$(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
200
175
@echo " Testing of doctests in the sources finished, look at the " \
201
176
" results in $( BUILDDIR) /doctest/output.txt."
202
177
203
- .PHONY : coverage
178
+ .PHONY : coverage # # to run coverage check of the documentation (if enabled)
204
179
coverage :
205
180
$(SPHINXBUILD ) -b coverage $(ALLSPHINXOPTS ) $(BUILDDIR ) /coverage
206
181
@echo " Testing of coverage in the sources finished, look at the " \
207
182
" results in $( BUILDDIR) /coverage/python.txt."
208
183
209
- .PHONY : xml
184
+ .PHONY : xml # # to make Docutils-native XML files
210
185
xml :
211
186
$(SPHINXBUILD ) -b xml $(ALLSPHINXOPTS ) $(BUILDDIR ) /xml
212
187
@echo
213
188
@echo " Build finished. The XML files are in $( BUILDDIR) /xml."
214
189
215
- .PHONY : pseudoxml
190
+ .PHONY : pseudoxml # # to make pseudoxml-XML files for display purposes
216
191
pseudoxml :
217
192
$(SPHINXBUILD ) -b pseudoxml $(ALLSPHINXOPTS ) $(BUILDDIR ) /pseudoxml
218
193
@echo
219
194
@echo " Build finished. The pseudo-XML files are in $( BUILDDIR) /pseudoxml."
220
195
221
- .PHONY : dummy
196
+ .PHONY : dummy # # to check syntax errors of document sources
222
197
dummy :
223
198
$(SPHINXBUILD ) -b dummy $(ALLSPHINXOPTS ) $(BUILDDIR ) /dummy
224
199
@echo
0 commit comments