2012-08-14 01:42:43 +00:00
|
|
|
.PHONY: build_ext tests
|
|
|
|
|
2015-04-30 23:36:56 +00:00
|
|
|
JAVAC_OPTS=-target 1.6 -source 1.6
|
|
|
|
JAVAC=javac $(JAVAC_OPTS)
|
|
|
|
|
2012-08-14 01:42:43 +00:00
|
|
|
build_ext:
|
2015-04-30 23:36:56 +00:00
|
|
|
$(JAVAC) jnius/src/org/jnius/NativeInvocationHandler.java
|
2013-03-13 17:53:55 +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:
|
|
|
|
find . -name "*.class" -exec rm {} \;
|
|
|
|
rm -rf build
|
|
|
|
|
2012-08-20 09:17:14 +00:00
|
|
|
html:
|
|
|
|
$(MAKE) -C docs html
|
|
|
|
|
2012-08-14 01:42:43 +00:00
|
|
|
tests: build_ext
|
2015-04-30 23:36:56 +00:00
|
|
|
cd tests && $(JAVAC) org/jnius/HelloWorld.java
|
|
|
|
cd tests && $(JAVAC) org/jnius/BasicsTest.java
|
|
|
|
cd tests && $(JAVAC) org/jnius/MultipleMethods.java
|
|
|
|
cd tests && $(JAVAC) org/jnius/SimpleEnum.java
|
|
|
|
cd tests && $(JAVAC) org/jnius/InterfaceWithPublicEnum.java
|
|
|
|
cd tests && $(JAVAC) org/jnius/ClassArgument.java
|
|
|
|
cd tests && $(JAVAC) org/jnius/MultipleDimensions.java
|
|
|
|
cp jnius/src/org/jnius/NativeInvocationHandler.class tests/org/jnius
|
2013-01-02 12:57:08 +00:00
|
|
|
cd tests && env PYTHONPATH=..:$(PYTHONPATH) nosetests-2.7 -v
|