mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4598 from stephenfin/makefile-cleanup
Makefile cleanup
This commit is contained in:
commit
d315f9e251
28
Makefile
28
Makefile
@ -3,14 +3,6 @@ PYTHON ?= python
|
||||
.PHONY: all
|
||||
all: clean-pyc clean-backupfiles style-check type-check test
|
||||
|
||||
.PHONY: style-check
|
||||
style-check:
|
||||
@flake8
|
||||
|
||||
.PHONY: type-check
|
||||
type-check:
|
||||
mypy sphinx/
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-pyc clean-pycache clean-patchfiles clean-backupfiles clean-generated clean-testfiles clean-buildfiles clean-mypyfiles
|
||||
|
||||
@ -59,22 +51,22 @@ clean-buildfiles:
|
||||
clean-mypyfiles:
|
||||
rm -rf .mypy_cache/
|
||||
|
||||
.PHONY: style-check
|
||||
style-check:
|
||||
@flake8
|
||||
|
||||
.PHONY: type-check
|
||||
type-check:
|
||||
mypy sphinx/
|
||||
|
||||
.PHONY: pylint
|
||||
pylint:
|
||||
@pylint --rcfile utils/pylintrc sphinx
|
||||
|
||||
.PHONY: reindent
|
||||
reindent:
|
||||
@echo "This target no longer does anything and will be removed imminently"
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
@$(PYTHON) -m pytest -v $(TEST)
|
||||
|
||||
.PHONY: test-async
|
||||
test-async:
|
||||
@echo "This target no longer does anything and will be removed imminently"
|
||||
|
||||
.PHONY: covertest
|
||||
covertest:
|
||||
@$(PYTHON) -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
|
||||
@ -86,6 +78,6 @@ build:
|
||||
.PHONY: docs
|
||||
docs:
|
||||
ifndef target
|
||||
$(info You need to give a provide a target variable, e.g. `make docs target=html`.)
|
||||
$(info You need to give a provide a target variable, e.g. `make docs target=html`.)
|
||||
endif
|
||||
$(MAKE) -C doc $(target)
|
||||
$(MAKE) -C doc $(target)
|
||||
|
Loading…
Reference in New Issue
Block a user