forked from physion-archive/pyjnius
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
31 lines (25 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: build_ext tests
class_version = 1.6
javac = javac -source $(class_version) -target $(class_version)
build_ext:
$(javac) jnius/src/org/jnius/NativeInvocationHandler.java
python setup.py build_ext --inplace -f -g
html:
$(MAKE) -C docs html
compile-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/SimpleIterable.java
tests: compile-tests
cd tests && env PYTHONPATH=..:$(PYTHONPATH) nosetests -v
clean:
rm -rf build/
rm -f jnius/config.pxi
rm -f jnius/jnius.c
rm -f jnius/*.so
find . -iname '*.pyc' -delete
find . -iname '*.class' -delete