#!/usr/bin/make -f

JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

override_dh_auto_build:
	dh_auto_build -- -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8

#override_dh_auto_test:
#	ant -f test/build.xml
#
# Needs more work:
#   
#    [javac] /build/mpj-0.44+dfsg/test/build.xml:7: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
#    [javac] Compiling 5 source files
#    [javac] Note: /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/jgfutil/JGFInstrumentor.java uses unchecked or unsafe operations.
#    [javac] Note: Recompile with -Xlint:unchecked for details.
#    [javac] /build/mpj-0.44+dfsg/test/build.xml:10: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
#    [javac] Compiling 9 source files
#    [javac] /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/section1/JGFAlltoallBench.java:28: error: cannot find symbol
#    [javac] public class JGFAlltoallBench implements JGFSection1{
#    [javac]                                          ^
#    [javac]   symbol: class JGFSection1
#    [javac] /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/section1/JGFBarrierBench.java:27: error: cannot find symbol
#    [javac] public class JGFBarrierBench implements JGFSection1{
#    [javac]                                         ^
#    [javac]   symbol: class JGFSection1
#    [javac] /build/mpj-0.44+dfsg/test/jgf_mpj_benchmarks/section1/JGFBcastBench.java:28: error: cannot find symbol
#    [javac] public class JGFBcastBench implements JGFSection1{
#    [javac]                                       ^
#
