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 48
48
49
49
clean :
50
50
rm -rf $(BUILDDIR ) /*
51
+ rm -rf source/generated
52
+ rm -rf source/auto_examples
53
+ rm -rf source/savefig
51
54
52
55
html :
53
56
$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ set BUILDDIR=build
12
12
13
13
if " %1 " == " " goto help
14
14
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
+
15
26
%SPHINXBUILD% > NUL 2 > NUL
16
27
if errorlevel 9009 (
17
28
echo .
You can’t perform that action at this time.
0 commit comments