1f08c3bdfSopenharmony_ci# Minimal makefile for Sphinx documentation 2f08c3bdfSopenharmony_ci# 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_ci# You can set these variables from the command line. 5f08c3bdfSopenharmony_ciSPHINXOPTS = -a 6f08c3bdfSopenharmony_ciSPHINXBUILD = sphinx-build 7f08c3bdfSopenharmony_ciSPHINXPROJ = sparse 8f08c3bdfSopenharmony_ciSOURCEDIR = . 9f08c3bdfSopenharmony_ciBUILDDIR = build 10f08c3bdfSopenharmony_ci 11f08c3bdfSopenharmony_citargets := help 12f08c3bdfSopenharmony_citargets += html 13f08c3bdfSopenharmony_citargets += man 14f08c3bdfSopenharmony_ci 15f08c3bdfSopenharmony_ci 16f08c3bdfSopenharmony_ci# Put it first so that "make" without argument is like "make help". 17f08c3bdfSopenharmony_cihelp: 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_ci# route all targets to Sphinx using the new "make mode" option. 20f08c3bdfSopenharmony_ci$(targets): conf.py Makefile 21f08c3bdfSopenharmony_ci @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) 22f08c3bdfSopenharmony_ci 23f08c3bdfSopenharmony_ci%.1: %.rst man 24f08c3bdfSopenharmony_ci @mv build/man/$@ $@ 25f08c3bdfSopenharmony_ci 26f08c3bdfSopenharmony_ci.PHONY: Makefile # avoid circular deps with the catch-all rule 27