@@ -14,64 +14,53 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
1414# the i18n builder cannot share the environment and doctrees with the others
1515I18NSPHINXOPTS = $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) .
1616
17- .PHONY : help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
18-
17+ .PHONY : help
1918help :
2019 @echo " Please use \` make <target>' where <target> is one of"
21- @echo " html to make standalone HTML files"
22- @echo " dirhtml to make HTML files named index.html in directories"
23- @echo " singlehtml to make a single large HTML file"
24- @echo " pickle to make pickle files"
25- @echo " json to make JSON files"
26- @echo " htmlhelp to make HTML files and a HTML help project"
27- @echo " qthelp to make HTML files and a qthelp project"
28- @echo " devhelp to make HTML files and a Devhelp project"
29- @echo " epub to make an epub"
30- @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
31- @echo " latexpdf to make LaTeX files and run them through pdflatex"
32- @echo " text to make text files"
33- @echo " man to make manual pages"
34- @echo " texinfo to make Texinfo files"
35- @echo " info to make Texinfo files and run them through makeinfo"
36- @echo " gettext to make PO message catalogs"
37- @echo " changes to make an overview of all changed/added/deprecated items"
38- @echo " linkcheck to check all external links for integrity"
39- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
20+ @egrep ' ^\.PHONY: [a-zA-Z_-]+ .*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = "(: |##)"}; {printf "\033[36m%-30s\033[0m %s\n", $$2, $$3}'
4021
22+ .PHONY : clean
4123clean :
4224 -rm -rf $(BUILDDIR ) /*
4325
26+ .PHONY : html # # to make standalone HTML files
4427html :
4528 $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
4629 @echo
4730 @echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
4831
32+ .PHONY : dirhtml # # to make HTML files named index.html in directories
4933dirhtml :
5034 $(SPHINXBUILD ) -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /dirhtml
5135 @echo
5236 @echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
5337
38+ .PHONY : singlehtml # # to make a single large HTML file
5439singlehtml :
5540 $(SPHINXBUILD ) -b singlehtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /singlehtml
5641 @echo
5742 @echo " Build finished. The HTML page is in $( BUILDDIR) /singlehtml."
5843
44+ .PHONY : pickle # # to make pickle files
5945pickle :
6046 $(SPHINXBUILD ) -b pickle $(ALLSPHINXOPTS ) $(BUILDDIR ) /pickle
6147 @echo
6248 @echo " Build finished; now you can process the pickle files."
6349
50+ .PHONY : json # # to make JSON files
6451json :
6552 $(SPHINXBUILD ) -b json $(ALLSPHINXOPTS ) $(BUILDDIR ) /json
6653 @echo
6754 @echo " Build finished; now you can process the JSON files."
6855
56+ .PHONY : htmlhelp # # to make HTML files and a HTML help project
6957htmlhelp :
7058 $(SPHINXBUILD ) -b htmlhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /htmlhelp
7159 @echo
7260 @echo " Build finished; now you can run HTML Help Workshop with the" \
7361 " .hhp project file in $( BUILDDIR) /htmlhelp."
7462
63+ .PHONY : qthelp # # to make HTML files and a qthelp project
7564qthelp :
7665 $(SPHINXBUILD ) -b qthelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /qthelp
7766 @echo
@@ -81,6 +70,7 @@ qthelp:
8170 @echo " To view the help file:"
8271 @echo " # assistant -collectionFile $( BUILDDIR) /qthelp/kazoo.qhc"
8372
73+ .PHONY : devhelp # # to make HTML files and a Devhelp project
8474devhelp :
8575 $(SPHINXBUILD ) -b devhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /devhelp
8676 @echo
@@ -90,63 +80,74 @@ devhelp:
9080 @echo " # ln -s $( BUILDDIR) /devhelp $$ HOME/.local/share/devhelp/kazoo"
9181 @echo " # devhelp"
9282
83+ .PHONY : epub # # to make an epub
9384epub :
9485 $(SPHINXBUILD ) -b epub $(ALLSPHINXOPTS ) $(BUILDDIR ) /epub
9586 @echo
9687 @echo " Build finished. The epub file is in $( BUILDDIR) /epub."
9788
89+ .PHONY : latex # # to make LaTeX files, you can set PAPER=a4 or PAPER=letter
9890latex :
9991 $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
10092 @echo
10193 @echo " Build finished; the LaTeX files are in $( BUILDDIR) /latex."
10294 @echo " Run \` make' in that directory to run these through (pdf)latex" \
10395 " (use \` make latexpdf' here to do that automatically)."
10496
97+ .PHONY : latexpdf # # to make LaTeX files and run them through pdflatex
10598latexpdf :
10699 $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
107100 @echo " Running LaTeX files through pdflatex..."
108101 $(MAKE ) -C $(BUILDDIR ) /latex all-pdf
109102 @echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
110103
104+ .PHONY : text # # to make text files
111105text :
112106 $(SPHINXBUILD ) -b text $(ALLSPHINXOPTS ) $(BUILDDIR ) /text
113107 @echo
114108 @echo " Build finished. The text files are in $( BUILDDIR) /text."
115109
110+ .PHONY : man # # to make manual pages
116111man :
117112 $(SPHINXBUILD ) -b man $(ALLSPHINXOPTS ) $(BUILDDIR ) /man
118113 @echo
119114 @echo " Build finished. The manual pages are in $( BUILDDIR) /man."
120115
116+ .PHONY : texinfo # # to make Texinfo files
121117texinfo :
122118 $(SPHINXBUILD ) -b texinfo $(ALLSPHINXOPTS ) $(BUILDDIR ) /texinfo
123119 @echo
124120 @echo " Build finished. The Texinfo files are in $( BUILDDIR) /texinfo."
125121 @echo " Run \` make' in that directory to run these through makeinfo" \
126122 " (use \` make info' here to do that automatically)."
127123
124+ .PHONY : info # # to make Texinfo files and run them through makeinfo
128125info :
129126 $(SPHINXBUILD ) -b texinfo $(ALLSPHINXOPTS ) $(BUILDDIR ) /texinfo
130127 @echo " Running Texinfo files through makeinfo..."
131128 make -C $(BUILDDIR ) /texinfo info
132129 @echo " makeinfo finished; the Info files are in $( BUILDDIR) /texinfo."
133130
131+ .PHONY : gettext # # to make PO message catalogs
134132gettext :
135133 $(SPHINXBUILD ) -b gettext $(I18NSPHINXOPTS ) $(BUILDDIR ) /locale
136134 @echo
137135 @echo " Build finished. The message catalogs are in $( BUILDDIR) /locale."
138136
137+ .PHONY : changes # # to make an overview of all changed/added/deprecated items
139138changes :
140139 $(SPHINXBUILD ) -b changes $(ALLSPHINXOPTS ) $(BUILDDIR ) /changes
141140 @echo
142141 @echo " The overview file is in $( BUILDDIR) /changes."
143142
143+ .PHONY : linkcheck # # to check all external links for integrity
144144linkcheck :
145145 $(SPHINXBUILD ) -b linkcheck $(ALLSPHINXOPTS ) $(BUILDDIR ) /linkcheck
146146 @echo
147147 @echo " Link check complete; look for any errors in the above output " \
148148 " or in $( BUILDDIR) /linkcheck/output.txt."
149149
150+ .PHONY : doctest # # to run all doctests embedded in the documentation (if enabled)
150151doctest :
151152 $(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
152153 @echo " Testing of doctests in the sources finished, look at the " \
0 commit comments