docs: Makefile: Try to avoid nuking the .git directory...
... if there is one.
This commit is contained in:
parent
e165f13a9e
commit
7ef145cdc5
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue