OpenFPGA/docs/Makefile

31 lines
894 B
Makefile
Raw Normal View History

2018-09-13 16:38:41 -05:00
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
2018-09-13 18:39:57 -05:00
SPHINXBUILD = sphinx-build-3.6
2018-09-13 16:38:41 -05:00
SOURCEDIR = source
BUILDDIR = build
2018-09-13 17:25:24 -05:00
PAPER =
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALL_SPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR)
2018-09-13 16:38:41 -05:00
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2018-09-13 17:25:24 -05:00
clean:
rm -rf $(BUILDDIR)/*
.PHONY: help clean Makefile
2018-09-13 16:38:41 -05:00
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
2018-09-13 17:25:24 -05:00
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
#html:
# $(SPHINXBUILD) -b html $@ "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)