makefile: make sure we can clean and recompile

This commit is contained in:
Mathieu Virbel 2018-11-08 09:36:30 +01:00
parent 3732d8d55a
commit 3f5364e021
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.PHONY: build_ext test
.PHONY: build_ext test all
build_ext:
env CFLAGS="-O0" python setup.py build_ext --inplace -g
@ -8,8 +8,14 @@ test_lib:
clang objc_classes/test/testlib.m -o objc_classes/test/testlib.dylib -dynamiclib -framework Foundation
tests: build_ext
cd tests && env PYTHONPATH=..:$(PYTHONPATH) nosetests -v
cd tests && env PYTHONPATH=..:$(PYTHONPATH) pytest -v
html:
$(MAKE) -C docs html
distclean:
rm -rf pyobjus/*.so
rm -rf pyobjus/*.pyc
rm -rf pyobjus/__pycache__
all: build_ext