forked from MagicStack/httptools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (18 loc) · 634 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (18 loc) · 634 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
.PHONY: compile release test distclean clean
PYTHON ?= python3
ROOT = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
compile:
python3 setup.py build_ext --inplace
release: compile test
python3 setup.py sdist upload
test:
python3 setup.py test
clean:
find $(ROOT)/httptools/parser -name '*.c' | xargs rm -f
find $(ROOT)/httptools/parser -name '*.html' | xargs rm -f
distclean:
git --git-dir="$(ROOT)/vendor/http-parser/.git" clean -dfx
find $(ROOT)/httptools/parser -name '*.c' | xargs rm -f
find $(ROOT)/httptools/parser -name '*.html' | xargs rm -f
testinstalled:
cd /tmp && $(PYTHON) $(ROOT)/tests/__init__.py