2015-11-26 01:35:36 +00:00
|
|
|
.PHONY: compile clean all distclean test test1 debug
|
2015-11-03 23:49:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
all: clean compile
|
2015-11-01 17:00:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2015-11-11 05:25:37 +00:00
|
|
|
mv uvloop/futures.c uvloop/futures.c~
|
2015-11-03 17:42:21 +00:00
|
|
|
rm -fdr uvloop/*.c uvloop/*.html uvloop/*.so build *.egg-info
|
2015-11-11 05:25:37 +00:00
|
|
|
mv uvloop/futures.c~ uvloop/futures.c
|
2015-11-03 17:42:21 +00:00
|
|
|
find . -name '__pycache__' | xargs rm -rf
|
2015-11-01 17:00:43 +00:00
|
|
|
|
|
|
|
|
2015-11-09 19:26:34 +00:00
|
|
|
distclean: clean
|
2015-11-03 23:49:23 +00:00
|
|
|
git -C vendor/libuv clean -dfX
|
|
|
|
|
|
|
|
|
2015-11-04 02:21:30 +00:00
|
|
|
compile: clean
|
2015-11-26 01:35:36 +00:00
|
|
|
echo "DEF DEBUG = 0" > uvloop/__debug.pxi
|
|
|
|
cython -3 -a uvloop/loop.pyx; rm uvloop/__debug.pxi
|
|
|
|
python3 setup.py build_ext --inplace
|
|
|
|
|
|
|
|
|
|
|
|
debug: clean
|
|
|
|
echo "DEF DEBUG = 1" > uvloop/__debug.pxi
|
|
|
|
cython -3 -a uvloop/loop.pyx; rm uvloop/__debug.pxi
|
2015-11-01 17:00:43 +00:00
|
|
|
python3 setup.py build_ext --inplace
|
2015-11-10 22:41:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
test:
|
2015-11-20 20:33:43 +00:00
|
|
|
PYTHONASYNCIODEBUG=1 python3 -m unittest discover -s tests
|
|
|
|
python3 -m unittest discover -s tests
|
2015-11-19 23:46:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
test1:
|
|
|
|
python3 -m py.test -s --assert=plain -k $(filter-out $@,$(MAKECMDGOALS))
|
2015-11-21 00:08:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Catch all rule (for 'make test1 smth' work without make errors)
|
|
|
|
%:
|
|
|
|
@:
|