summaryrefslogtreecommitdiff
blob: e64080850a81ba31fb3a27f4e408f69c6891a44b (plain)
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
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS    =
SPHINXBUILD   = sphinx-build
SPHINXPROJ    = GentooPolicyGuide
SOURCEDIR     = .
BUILDDIR      = _build

all: html $(BUILDDIR)/html/combined.html

$(BUILDDIR)/html/combined.html: singlehtml
	cp $(BUILDDIR)/singlehtml/index.html $@

# The standard `clean` command removes the git repository
clean:
	rm -rf _build/html/* _build/html/.buildinfo

.PHONY: all clean Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)