mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
68c91b1920
commit
ae3a26fd71
1
CHANGES
1
CHANGES
@ -42,6 +42,7 @@ Bugs fixed
|
||||
is decorated
|
||||
* #8434: autodoc: :confval:`autodoc_type_aliases` does not effect to variables
|
||||
and attributes
|
||||
* #8437: Makefile: ``make clean`` with empty BUILDDIR is dangerous
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -49,7 +49,7 @@ help:
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)/*
|
||||
rm -rf $(BUILDDIR)
|
||||
|
||||
.PHONY: latexpdf
|
||||
latexpdf:
|
||||
|
Loading…
Reference in New Issue
Block a user