| 1 |
# Copyright (C) 2025 Siemens |
| 2 |
# |
| 3 |
# SPDX-License-Identifier: MIT |
| 4 |
# |
| 5 |
# Minimal makefile for Sphinx documentation |
| 6 |
# |
| 7 |
|
| 8 |
# You can set these variables from the command line, and also |
| 9 |
# from the environment for the first two. |
| 10 |
SPHINXOPTS ?= |
| 11 |
SPHINXBUILD ?= python3 -m sphinx |
| 12 |
SOURCEDIR = source |
| 13 |
BUILDDIR = build |
| 14 |
|
| 15 |
# Put it first so that "make" without argument is like "make help". |
| 16 |
help: |
| 17 |
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 18 |
|
| 19 |
.PHONY: help Makefile |
| 20 |
|
| 21 |
.PHONY: man |
| 22 |
man: |
| 23 |
$(SPHINXBUILD) -M $@ -t man "$(SOURCEDIR)" "$(BUILDDIR)/man" $(SPHINXOPTS) $(O) |
| 24 |
@echo |
| 25 |
@echo "Build finished. The manual pages are in $(BUILDDIR)/man." |
| 26 |
|
| 27 |
# Catch-all target: route all unknown targets to Sphinx using the new |
| 28 |
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |
| 29 |
%: Makefile |
| 30 |
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |