Skip to content

Commit

Permalink
multiversion makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroBarker committed Sep 26, 2024
1 parent 431128f commit 02936c7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/sphinx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
help: sphinxhelp
$(info "Use make multiversion to use sphinx-multiversion")

sphinxhelp:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile
multiversion: Makefile
sphinx-multiversion "$(SOURCEDIR)" "$(BUILDDIR)/html"
cp ../index.html "$(BUILDDIR)/html"

.PHONY: help sphinxhelp multiversion Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Expand Down

0 comments on commit 02936c7

Please sign in to comment.