Merge pull request #4598 from stephenfin/makefile-cleanup

Makefile cleanup
This commit is contained in:
Takeshi KOMIYA 2018-02-14 00:40:22 +09:00 committed by GitHub
commit d315f9e251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)