diff --git a/doc/Makefile b/doc/Makefile index 1558484f13a..f749e1308e5 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -22,5 +22,5 @@ help: clean: rm -rf build_errors.txt rm -rf $(BUILDDIR)/* - rm -rf $(SOURCEDIR)/examples + rm -rf $(SOURCEDIR)/examples/* find . -type d -name "_autosummary" -exec rm -rf {} + diff --git a/doc/make.bat b/doc/make.bat index ee772a2c8e3..d1b4a58efec 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -34,7 +34,7 @@ goto end :clean rmdir /s /q %BUILDDIR% > /NUL 2>&1 -rmdir /s /q %SOURCEDIR%\examples > /NUL 2>&1 +del /q %SOURCEDIR%\examples\* > /NUL 2>&1 for /d /r %SOURCEDIR% %%d in (_autosummary) do @if exist "%%d" rmdir /s /q "%%d" del build_errors.txt > /NUL 2>&1 goto end