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
|
.PHONY: all
|
||||||
all: clean-pyc clean-backupfiles style-check type-check test
|
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
|
.PHONY: clean
|
||||||
clean: clean-pyc clean-pycache clean-patchfiles clean-backupfiles clean-generated clean-testfiles clean-buildfiles clean-mypyfiles
|
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:
|
clean-mypyfiles:
|
||||||
rm -rf .mypy_cache/
|
rm -rf .mypy_cache/
|
||||||
|
|
||||||
|
.PHONY: style-check
|
||||||
|
style-check:
|
||||||
|
@flake8
|
||||||
|
|
||||||
|
.PHONY: type-check
|
||||||
|
type-check:
|
||||||
|
mypy sphinx/
|
||||||
|
|
||||||
.PHONY: pylint
|
.PHONY: pylint
|
||||||
pylint:
|
pylint:
|
||||||
@pylint --rcfile utils/pylintrc sphinx
|
@pylint --rcfile utils/pylintrc sphinx
|
||||||
|
|
||||||
.PHONY: reindent
|
|
||||||
reindent:
|
|
||||||
@echo "This target no longer does anything and will be removed imminently"
|
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@$(PYTHON) -m pytest -v $(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
|
.PHONY: covertest
|
||||||
covertest:
|
covertest:
|
||||||
@$(PYTHON) -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
|
@$(PYTHON) -m pytest -v --cov=sphinx --junitxml=.junit.xml $(TEST)
|
||||||
@ -86,6 +78,6 @@ build:
|
|||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
docs:
|
docs:
|
||||||
ifndef target
|
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
|
endif
|
||||||
$(MAKE) -C doc $(target)
|
$(MAKE) -C doc $(target)
|
||||||
|
Loading…
Reference in New Issue
Block a user