diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-09-05 05:12:04 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-09-05 05:12:04 +0000 |
commit | 5fb53fce5f5bd67adcc971fcb9a3ddcd5ee9b7b5 (patch) | |
tree | d860cd76df9e9a7a2000be84c4b5c25ca864f4b1 /libcxx | |
parent | 02a55d701db9ada715a6deebc37fb6b8fee6b133 (diff) | |
download | bcm5719-llvm-5fb53fce5f5bd67adcc971fcb9a3ddcd5ee9b7b5.tar.gz bcm5719-llvm-5fb53fce5f5bd67adcc971fcb9a3ddcd5ee9b7b5.zip |
Add temporary Makefile.sphinx build file to get libcxx.llvm.org/docs going
llvm-svn: 246909
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/docs/Makefile.sphinx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libcxx/docs/Makefile.sphinx b/libcxx/docs/Makefile.sphinx new file mode 100644 index 00000000000..743ebfe48f1 --- /dev/null +++ b/libcxx/docs/Makefile.sphinx @@ -0,0 +1,34 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext default + +default: html + +help: + @echo "Please use \`make <target>' where <target> is one of" + @echo " html to make standalone HTML files" + +clean: + -rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @# FIXME: Remove this `cp` once HTML->Sphinx transition is completed. + @# Kind of a hack, but HTML-formatted docs are on the way out anyway. + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + |