make: Add sdist-upload and clean-libuv targets

This commit is contained in:
Yury Selivanov 2016-04-12 10:28:39 -04:00
parent 11ab111918
commit c64d56a0ec
1 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.PHONY: compile clean all distclean test debug sdist
.PHONY: compile clean all distclean test debug sdist clean-libuv sdist-upload
all: clean compile
@ -10,10 +10,13 @@ clean:
find . -name '__pycache__' | xargs rm -rf
distclean: clean
clean-libuv:
git -C vendor/libuv clean -dfX
distclean: clean clean-libuv
compile: clean
echo "DEF DEBUG = 0" > uvloop/__debug.pxi
cython -3 uvloop/loop.pyx; rm uvloop/__debug.*
@ -31,6 +34,9 @@ test:
python3 -m unittest discover -s tests
sdist: clean compile test
git -C vendor/libuv clean -dfX
sdist: clean compile test clean-libuv
python3 setup.py sdist
sdist-upload: clean compile test clean-libuv
python3 setup.py sdist