pyjnius/Makefile

28 lines
411 B
Makefile
Raw Normal View History

all: build_ext
.PHONY: build_ext tests tests3
ifdef PYTHON3
PYTHON=python3
NOSETESTS=nosetests-3
else
PYTHON=python
NOSETESTS=nosetests-2.7
endif
2012-08-14 01:42:43 +00:00
ANT=ant
2012-08-14 01:42:43 +00:00
build_ext:
$(ANT) all
$(PYTHON) setup.py build_ext --inplace -f -g
2012-08-14 01:42:43 +00:00
clean:
$(ANT) clean
rm -rf build
2012-08-20 09:17:14 +00:00
html:
$(MAKE) -C docs html
tests:
(cd tests; env CLASSPATH=../build/test-classes:../build/classes PYTHONPATH=..:$(PYTHONPATH) $(NOSETESTS) -v)