source: trunk/docs/manual/Makefile @ 3

Last change on this file since 3 was 2, checked in by pinsard, 9 years ago

add tools and procedure for checking typo

File size: 1.1 KB
Line 
1# Minimal makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line.
5SPHINXOPTS    =
6SPHINXBUILD   = sphinx-build
7SPHINXPROJ    = igcmg_doc
8SOURCEDIR     = source
9BUILDDIR      = _build
10
11# User-friendly check for sphinx-build.
12ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
13$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
14endif
15
16# Has to be explicit, otherwise we don't get "make" without targets right.
17help:
18        @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
19
20# You can add custom targets here.
21
22# Catch-all target: route all unknown targets to Sphinx using the new
23# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
24%:
25        @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Note: See TracBrowser for help on using the repository browser.