-
Notifications
You must be signed in to change notification settings - Fork 945
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 742 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
all:
@echo "Targets:"
@echo " clean"
@echo " docs"
@echo " mypy"
@echo " style-check"
@echo " style-fix"
clean:
pip cache purge
rm -rf dist
make -C docs clean
.PHONY: docs
docs:
$(MAKE) -C docs html
mypy:
python3 -m mypy src/confluent_kafka
style-check:
@(tools/style-format.sh \
$$(git ls-tree -r --name-only HEAD | egrep '\.(c|h|py)$$') )
style-check-changed:
@(tools/style-format.sh \
$$( (git diff --name-only ; git diff --name-only --staged) | egrep '\.(c|h|py)$$'))
style-fix:
@(tools/style-format.sh --fix \
$$(git ls-tree -r --name-only HEAD | egrep '\.(c|h|py)$$'))
style-fix-changed:
@(tools/style-format.sh --fix \
$$( (git diff --name-only ; git diff --name-only --staged) | egrep '\.(c|h|py)$$'))