pyobjus/Makefile

26 lines
550 B
Makefile
Raw Normal View History

.PHONY: build_ext test all
build_ext:
env CFLAGS="-O0" python setup.py build_ext --inplace -g
test_lib:
2013-09-03 13:16:33 +00:00
rm -rf objc_classes/test/usrlib.dylib
clang objc_classes/test/testlib.m -o objc_classes/test/testlib.dylib -dynamiclib -framework Foundation
tests: build_ext
cd tests && env PYTHONPATH=..:$(PYTHONPATH) python -m pytest -v
2013-03-26 20:28:00 +00:00
html:
$(MAKE) -C docs html
distclean:
rm -rf .pytest_cache
rm -rf build
rm -rf pyobjus/config.pxi
rm -rf pyobjus/pyobjus.c
rm -rf pyobjus/*.so
rm -rf pyobjus/*.pyc
rm -rf pyobjus/__pycache__
all: build_ext