File: Makefile

package info (click to toggle)
pytest-dependency 0.5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: python: 1,542; makefile: 66; sh: 8
file content (48 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS    =
SPHINXBUILD   = sphinx-build
PAPER         = a4

# Internal variables.
PAPEROPT_a4     = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS   = -d doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) src

# Subdirectories of src that are supposed to be there but that may be
# empty and may thus be missing after a git checkout.
SRCDIRS = src/_static src/_templates


html: $(SRCDIRS)
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) html

latex: $(SRCDIRS)
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) latex

latexpdf: latex
	$(MAKE) -C latex all-pdf

linkcheck: $(SRCDIRS)
	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) linkcheck

doctest: $(SRCDIRS)
	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) doctest

clean:
	rm -f *~ examples/*~ src/*~

distclean: clean
	rm -rf doctrees html latex linkcheck doctest
	rm -f examples/*.pyc
	rm -rf examples/__pycache__

src/_static:
	mkdir $@

src/_templates:
	mkdir $@

.PHONY: html latex latexpdf linkcheck doctest clean distclean