File: Makefile

package info (click to toggle)
python-httptools 0.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 252 kB
  • sloc: python: 560; makefile: 23
file content (30 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (2)
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