Skip to content

Commit 6ac0131

Browse files
committed
buildsys: docs: restore clean target
docs clean target was removed in https://github.com/universal-ctags/ctags/pull/4465/changes We expect that clean target will remove _build/ _ext/__pycache__ directories. `sphinx-build -M clean` command won't do this. If users don't want to generate docs, it will fail while executing `make clean` if sphinx-build is not installed. It is unreasonable to force users to install Sphinx, as they may have only executed `make clean`.
1 parent e66ac1d commit 6ac0131

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = _build
10+
EXTDIR = _ext
1011

1112
# Put it first so that "make" without argument is like "make help".
1213
help:
1314
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1415

15-
.PHONY: help Makefile
16+
.PHONY: help clean Makefile
17+
18+
clean:
19+
rm -rf $(BUILDDIR) $(EXTDIR)/__pycache__
1620

1721
# Catch-all target: route all unknown targets to Sphinx using the new
1822
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).

docs/html

Whitespace-only changes.

0 commit comments

Comments
 (0)