Skip to content

Commit c3a46a0

Browse files
committed
feat(make): add a target to prepare for deployment
Add a new target to prepare the build directory for deployment. Signed-off-by: Randolph Sapp <[email protected]>
1 parent dfa28d3 commit c3a46a0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,20 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
5353
help:
5454
@echo "Please use \`make <target>' where <target> is one of"
5555
@echo " html to make standalone HTML files"
56+
@echo " clean to remove the build directory and generated files"
57+
@echo " lint to run rstcheck to verify RST syntax"
58+
@echo " deploy to remove any temporary files from the build"
5659

5760
clean:
5861
rm -rf "$(BUILDDIR)"
5962

6063
lint:
6164
rstcheck -r "$(SOURCEDIR)"
6265

63-
html:
66+
html:
6467
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) "$(SOURCEDIR)" "$(BUILDDIR)"
6568
@echo
6669
@echo "Build finished. The HTML pages are in $(BUILDDIR)."
70+
71+
deploy:
72+
rm -rf "$(BUILDDIR)/doctrees"

0 commit comments

Comments
 (0)