2015-05-01 01:07:08 +00:00
|
|
|
all: build_ext
|
|
|
|
|
2012-08-14 01:42:43 +00:00
|
|
|
.PHONY: build_ext tests
|
2015-05-01 21:57:22 +00:00
|
|
|
|
|
|
|
ifdef PYTHON3
|
|
|
|
PYTHON=python3
|
2015-11-03 15:31:06 +00:00
|
|
|
NOSETESTS=nosetests-3.4
|
2015-05-01 21:57:22 +00:00
|
|
|
else
|
|
|
|
PYTHON=python
|
|
|
|
NOSETESTS=nosetests-2.7
|
|
|
|
endif
|
2012-08-14 01:42:43 +00:00
|
|
|
|
2015-04-30 23:36:56 +00:00
|
|
|
JAVAC_OPTS=-target 1.6 -source 1.6
|
|
|
|
JAVAC=javac $(JAVAC_OPTS)
|
|
|
|
|
2015-05-01 01:07:08 +00:00
|
|
|
ANT=ant
|
2015-04-30 23:36:56 +00:00
|
|
|
|
2012-08-14 01:42:43 +00:00
|
|
|
build_ext:
|
2015-05-01 01:07:08 +00:00
|
|
|
$(ANT) all
|
2015-05-01 21:57:22 +00:00
|
|
|
$(PYTHON) setup.py build_ext --inplace -f -g
|
2012-08-14 01:42:43 +00:00
|
|
|
|
2015-04-30 23:36:56 +00:00
|
|
|
clean:
|
2015-05-01 01:07:08 +00:00
|
|
|
$(ANT) clean
|
2015-05-01 16:16:58 +00:00
|
|
|
rm -rf build jnius/config.pxi
|
2015-04-30 23:36:56 +00:00
|
|
|
|
2012-08-20 09:17:14 +00:00
|
|
|
html:
|
|
|
|
$(MAKE) -C docs html
|
|
|
|
|
2015-11-03 15:31:06 +00:00
|
|
|
tests: test2 test3
|
2015-11-03 12:51:45 +00:00
|
|
|
|
2015-11-03 15:31:06 +00:00
|
|
|
tests2:
|
|
|
|
(cd tests; env CLASSPATH=../build/test-classes:../build/classes PYTHONPATH=..:$(PYTHONPATH) $(NOSETESTS) -v)
|
|
|
|
tests3:
|
|
|
|
make tests2 PYTHON3=1
|