mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
This is intended to do almost all of what the quickstart-generated Makefile and make.bat did, but within Sphinx. The advantages are: * no duplication between Unix and Windows files * updates and fixes are propagated (the generated makefiles never update) * more Python code, less shell code!
25 lines
783 B
Makefile
25 lines
783 B
Makefile
# Makefile for Sphinx documentation
|
|
#
|
|
|
|
# You can set these variables from the command line.
|
|
SPHINXOPTS =
|
|
SPHINXBUILD = python ../sphinx-build.py
|
|
SPHINXPROJ = sphinx
|
|
BUILDDIR = _build
|
|
|
|
# User-friendly check for sphinx-build
|
|
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
|
$(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/)
|
|
endif
|
|
|
|
help:
|
|
@$(SPHINXBUILD) -M help "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
%:
|
|
@$(SPHINXBUILD) -M $@ "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|