2018-11-08 08:36:30 +00:00
|
|
|
.PHONY: build_ext test all
|
2012-08-20 20:01:00 +00:00
|
|
|
|
|
|
|
build_ext:
|
2014-02-06 17:19:35 +00:00
|
|
|
env CFLAGS="-O0" python setup.py build_ext --inplace -g
|
2012-08-20 20:01:00 +00:00
|
|
|
|
2013-09-03 12:44:38 +00:00
|
|
|
test_lib:
|
2022-03-26 12:57:26 +00:00
|
|
|
rm -rf objc_classes/test/testlib.dylib objc_classes/test/CArrayTestlib.dylib
|
|
|
|
clang objc_classes/test/testlib.m -o objc_classes/test/testlib.dylib -dynamiclib -framework Foundation -arch arm64 -arch x86_64
|
|
|
|
clang objc_classes/test/CArrayTestlib.m -o objc_classes/test/CArrayTestlib.dylib -dynamiclib -framework Foundation -arch arm64 -arch x86_64
|
2013-07-07 22:37:20 +00:00
|
|
|
|
2012-08-20 20:01:00 +00:00
|
|
|
tests: build_ext
|
2020-08-14 13:29:47 +00:00
|
|
|
cd tests && env PYTHONPATH=..:$(PYTHONPATH) python -m pytest -v
|
2013-03-26 20:28:00 +00:00
|
|
|
|
|
|
|
html:
|
|
|
|
$(MAKE) -C docs html
|
|
|
|
|
2018-11-08 08:36:30 +00:00
|
|
|
distclean:
|
2018-11-08 10:10:02 +00:00
|
|
|
rm -rf .pytest_cache
|
|
|
|
rm -rf build
|
|
|
|
rm -rf pyobjus/config.pxi
|
|
|
|
rm -rf pyobjus/pyobjus.c
|
2018-11-08 08:36:30 +00:00
|
|
|
rm -rf pyobjus/*.so
|
|
|
|
rm -rf pyobjus/*.pyc
|
|
|
|
rm -rf pyobjus/__pycache__
|
|
|
|
|
|
|
|
all: build_ext
|