| 1 | # Copyright The OpenTelemetry Authors |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | # Minimal makefile for Sphinx documentation |
| 5 | # |
| 6 | |
| 7 | # You can set these variables from the command line, and also |
| 8 | # from the environment for the first two. |
| 9 | SPHINXOPTS ?= |
| 10 | SPHINXBUILD ?= sphinx-build |
| 11 | SOURCEDIR = . |
| 12 | BUILDDIR = _build |
| 13 | |
| 14 | # Put it first so that "make" without argument is like "make help". |
| 15 | help: |
| 16 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 17 | |
| 18 | .PHONY: help Makefile clean |
| 19 | |
| 20 | # Catch-all target: route all unknown targets to Sphinx using the new |
| 21 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |
| 22 | %: Makefile |
| 23 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 24 | |
| 25 | clean: |
| 26 | rm -rf doxyoutput |
| 27 | @$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |