summaryrefslogtreecommitdiff
path: root/docs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 210cbc7400..2a63943f00 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -7,13 +7,14 @@ SPHINXBUILD = sphinx-build
SPHINXPROJ = PyTorch
SOURCEDIR = source
BUILDDIR = build
+PYCMD = python
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
figures:
- python source/scripts/build_activation_images.py
+ @$(PYCMD) source/scripts/build_activation_images.py
docset: html
doc2dash --name $(SPHINXPROJ) --icon $(SOURCEDIR)/_static/img/pytorch-logo-flame.png --enable-js --online-redirect-url http://pytorch.org/docs/ --force $(BUILDDIR)/html/
@@ -28,3 +29,7 @@ docset: html
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile figures
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+
+clean:
+ @echo "Removing everything under 'build'.."
+ @rm -r $(BUILDDIR)/html/ $(BUILDDIR)/doctrees