xref: /aosp_15_r20/external/fonttools/Doc/Makefile (revision e1fe3e4ad2793916b15cccdc4a7da52a7e1dd0e9)
1*e1fe3e4aSElliott Hughes# Minimal makefile for Sphinx documentation
2*e1fe3e4aSElliott Hughes#
3*e1fe3e4aSElliott Hughes
4*e1fe3e4aSElliott Hughes# You can set these variables from the command line.
5*e1fe3e4aSElliott HughesSPHINXOPTS    =
6*e1fe3e4aSElliott HughesSPHINXBUILD   = sphinx-build
7*e1fe3e4aSElliott HughesSPHINXPROJ    = fontTools
8*e1fe3e4aSElliott HughesSOURCEDIR     = source
9*e1fe3e4aSElliott HughesBUILDDIR      = build
10*e1fe3e4aSElliott Hughes
11*e1fe3e4aSElliott Hughes# Put it first so that "make" without argument is like "make help".
12*e1fe3e4aSElliott Hugheshelp:
13*e1fe3e4aSElliott Hughes	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14*e1fe3e4aSElliott Hughes
15*e1fe3e4aSElliott Hughes.PHONY: help Makefile
16*e1fe3e4aSElliott Hughes
17*e1fe3e4aSElliott Hughes# Catch-all target: route all unknown targets to Sphinx using the new
18*e1fe3e4aSElliott Hughes# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
19*e1fe3e4aSElliott Hughes%: Makefile
20*e1fe3e4aSElliott Hughes	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)