docs: Makefile: Try to avoid nuking the .git directory...

... if there is one.
This commit is contained in:
Daniel Thompson 2020-04-11 20:49:52 +01:00
parent e165f13a9e
commit 7ef145cdc5

View file

@ -12,6 +12,13 @@ BUILDDIR = build
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
clean:
-mv build/html/.git build.html.git
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
mkdir -p build/html/
-mv build.html.git build/html/.git
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new