Skip to content

Commit c4d027a

Browse files
committed
Makefile: add PHONY
Almost all targets are phony.
1 parent 83bb7cb commit c4d027a

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,61 @@
11

22
PYTHON ?= python3
33

4-
.PHONY: doc
5-
64
.venv/bin/pip:
75
${PYTHON} -m venv .venv
86
.venv/bin/pip3 install --upgrade pip wheel
97

8+
.PHONY: venv
109
venv: .venv/bin/pip
1110

11+
.PHONY: dev
1212
dev: venv
1313
.venv/bin/pip3 install -e .[dev]
1414

15+
.PHONY: cs
1516
cs: venv
1617
.venv/bin/flake8 pytest_httpserver tests
1718

19+
.PHONY: autoformat
1820
autoformat: dev
1921
.venv/bin/autopep8 --in-place --recursive pytest_httpserver tests
2022

23+
.PHONY: mrproper
2124
mrproper: clean
2225
rm -rf dist
2326

27+
.PHONY: clean
2428
clean: cov-clean doc-clean
2529
rm -rf .venv *.egg-info build .eggs __pycache__ */__pycache__ .tox
2630

31+
.PHONY: quick-test
2732
quick-test:
2833
.venv/bin/pytest tests -s -vv
2934

35+
.PHONY: test
3036
test:
3137
tox
3238

39+
.PHONY: test-pdb
3340
test-pdb:
3441
.venv/bin/pytest tests -s -vv --pdb
3542

43+
.PHONY: cov
3644
cov: cov-clean
3745
.venv/bin/pytest --cov pytest_httpserver --cov-report=term --cov-report=html --cov-report=xml tests
3846

47+
.PHONY: cov-clean
3948
cov-clean:
4049
rm -rf htmlcov
4150

51+
.PHONY: doc
4252
doc: .venv
4353
.venv/bin/sphinx-build -M html doc doc/_build $(SPHINXOPTS) $(O)
4454

55+
.PHONY: doc-clean
4556
doc-clean:
4657
rm -rf doc/_build
4758

59+
.PHONY: changes
4860
changes:
4961
reno report --output CHANGES.rst --no-show-source

0 commit comments

Comments
 (0)