# HG changeset patch # User Franz Glasner # Date 1777189504 -7200 # Node ID a0b9fe464eb29e302cc651ea96693d613e52d9df # Parent 6ac1ea5d2d4aa78b2b256a304e9978419986c2d9 Make the Sphinx Makefile BSD-make compatible diff -r 6ac1ea5d2d4a -r a0b9fe464eb2 docs/GNUMakefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/GNUMakefile Sun Apr 26 09:45:04 2026 +0200 @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = . +BUILDDIR = _build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff -r 6ac1ea5d2d4a -r a0b9fe464eb2 docs/Makefile --- a/docs/Makefile Sun Apr 26 09:41:33 2026 +0200 +++ b/docs/Makefile Sun Apr 26 09:45:04 2026 +0200 @@ -16,5 +16,5 @@ # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). -%: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) +.DEFAULT: + @${SPHINXBUILD} -M $@ "${SOURCEDIR}" "${BUILDDIR}" ${SPHINXOPTS} ${O}