|
1 |
| -# Makefile for Sphinx documentation |
2 |
| -# |
3 |
| - |
4 |
| -# You can set these variables from the command line. |
5 | 1 | SPHINXOPTS =
|
6 | 2 | SPHINXBUILD = sphinx-build
|
7 |
| -PAPER = a4 |
8 |
| - |
9 |
| -# Internal variables. |
10 |
| -PAPEROPT_a4 = -D latex_paper_size=a4 |
11 |
| -PAPEROPT_letter = -D latex_paper_size=letter |
12 |
| -ALLSPHINXOPTS = -d doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) src |
13 |
| - |
14 |
| -# Subdirectories of src that are supposed to be there but that may be |
15 |
| -# empty and may thus be missing after a git checkout. |
16 |
| -SRCDIRS = src/_static src/_templates |
17 |
| - |
| 3 | +SPHINXPROJ = pytest-dependency |
| 4 | +SOURCEDIR = src |
| 5 | +BUILDDIR = . |
| 6 | +BUILDERS = html dirhtml singlehtml htmlhelp qthelp devhelp epub \ |
| 7 | + latex latexpdf man texinfo text gettext linkcheck xml \ |
| 8 | + json pickle |
18 | 9 |
|
19 |
| -html: $(SRCDIRS) |
20 |
| - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) html |
| 10 | +# Subdirectories of the source directory that are supposed to be there |
| 11 | +# but that may be empty and may thus be missing after a git checkout. |
| 12 | +STATIC_SOURCEDIRS = $(SOURCEDIR)/_static $(SOURCEDIR)/_templates |
21 | 13 |
|
22 |
| -latex: $(SRCDIRS) |
23 |
| - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) latex |
24 | 14 |
|
25 |
| -latexpdf: latex |
26 |
| - $(MAKE) -C latex all-pdf |
| 15 | +help: |
| 16 | + $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
27 | 17 |
|
28 |
| -linkcheck: $(SRCDIRS) |
29 |
| - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) linkcheck |
| 18 | +$(BUILDERS): $(STATIC_SOURCEDIRS) |
| 19 | + $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
30 | 20 |
|
31 |
| -doctest: $(SRCDIRS) |
32 |
| - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) doctest |
33 |
| - |
34 |
| -clean: |
35 |
| - rm -f *~ examples/*~ src/*~ |
36 |
| - |
37 |
| -distclean: clean |
38 |
| - rm -rf doctrees html latex linkcheck doctest |
39 |
| - rm -f examples/*.pyc |
40 |
| - rm -rf examples/__pycache__ |
41 |
| - |
42 |
| -src/_static: |
43 |
| - mkdir $@ |
| 21 | +distclean: |
| 22 | + rm -rf doctrees $(BUILDERS) |
44 | 23 |
|
45 |
| -src/_templates: |
| 24 | +$(STATIC_SOURCEDIRS): |
46 | 25 | mkdir $@
|
47 | 26 |
|
48 |
| -.PHONY: html latex latexpdf linkcheck doctest clean distclean |
| 27 | +.PHONY: help distclean $(BUILDERS) |
0 commit comments