Skip to content

Commit

Permalink
Clear out source directory when running 'make clean' (#3633)
Browse files Browse the repository at this point in the history
Clear out source directory when running 'make clean'
  • Loading branch information
jonathan343 authored Mar 22, 2023
1 parent eaa119f commit 3f51c08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SPHINXOPTS = -j auto
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
SERVICESDIR = source/reference/services

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
Expand Down Expand Up @@ -40,6 +41,8 @@ help:

clean:
-rm -rf $(BUILDDIR)/*
# Clears out the source directory (excluding 'index.rst').
find $(SERVICESDIR) -depth 1 ! -name 'index.rst' -exec rm -rf '{}' \+

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down

0 comments on commit 3f51c08

Please sign in to comment.