pyjnius/Makefile

27 lines
805 B
Makefile
Raw Normal View History

2012-08-14 01:42:43 +00:00
.PHONY: build_ext tests
JAVAC_OPTS=-target 1.6 -source 1.6
JAVAC=javac $(JAVAC_OPTS)
2012-08-14 01:42:43 +00:00
build_ext:
$(JAVAC) jnius/src/org/jnius/NativeInvocationHandler.java
python setup.py build_ext --inplace -f -g
2012-08-14 01:42:43 +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
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
cd tests && env PYTHONPATH=..:$(PYTHONPATH) nosetests-2.7 -v