File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 4848
4949clean :
5050 rm -rf $(BUILDDIR ) /*
51+ rm -rf source/generated
52+ rm -rf source/auto_examples
53+ rm -rf source/savefig
5154
5255html :
5356 $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ set BUILDDIR=build
1212
1313if " %1 " == " " goto help
1414
15+
16+ if " %1 " == " clean" (
17+ REM override the default `make clean` behavior of sphinx-build;
18+ REM this lets us clean out the various build files in sphinx/source/
19+ for /d %%i in (%BUILDDIR% \*) do rmdir /q /s %%i
20+ rmdir /q /s %SOURCEDIR% \generated > nul 2 >& 1
21+ rmdir /q /s %SOURCEDIR% \auto_examples > nul 2 >& 1
22+ rmdir /q /s %SOURCEDIR% \savefig > nul 2 >& 1
23+ goto end
24+ )
25+
1526%SPHINXBUILD% > NUL 2 > NUL
1627if errorlevel 9009 (
1728 echo .
You can’t perform that action at this time.
0 commit comments