uvloop/Makefile

42 lines
883 B
Makefile
Raw Normal View History

.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~
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
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
compile: clean
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
test1:
python3 -m py.test -s --assert=plain -k $(filter-out $@,$(MAKECMDGOALS))
# Catch all rule (for 'make test1 smth' work without make errors)
%:
@: