Skip to content

Commit

Permalink
Makefile: use PHONY and multiple names for targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Cube707 committed Aug 20, 2022
1 parent c6a7ddd commit 23c6dcc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
all: test precommit pack
.PHONY: tests build readchar

test:

# default target:
all: tests pre-commit build

test tests:
@pytest

precommit:
pre-commit precommit:
@pre-commit run -a

pack:
build pack readchar:
@python setup.py sdist bdist_wheel

0 comments on commit 23c6dcc

Please sign in to comment.