Fix #8437: Do make clean in more safe way

When users gives empty BUILDDIR to the `make clean` command on non-make
mode, our Makefile will remove all of files of systems via `rm -rf /*`.
To prevent the catastrophic operation, this makes the `make clean`
command safety.
This commit is contained in:
Takeshi KOMIYA 2020-11-20 01:08:52 +09:00
parent 68c91b1920
commit ae3a26fd71
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ Bugs fixed
is decorated is decorated
* #8434: autodoc: :confval:`autodoc_type_aliases` does not effect to variables * #8434: autodoc: :confval:`autodoc_type_aliases` does not effect to variables
and attributes and attributes
* #8437: Makefile: ``make clean`` with empty BUILDDIR is dangerous
Testing Testing
-------- --------

View File

@ -49,7 +49,7 @@ help:
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf $(BUILDDIR)/* rm -rf $(BUILDDIR)
.PHONY: latexpdf .PHONY: latexpdf
latexpdf: latexpdf: