#!/usr/bin/make -f

# Uncomment to get verbose build.
#export DH_VERBOSE := 1
export LC_ALL=C.UTF-8

export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH="/usr/share/java/commons-logging.jar:/usr/share/java/commons-math.jar"
export TESTCLASSPATH="/usr/share/java/junit4.jar"

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -rf debian/libdistlib-java/ debian/libdistlib-java-doc/ debian/.debhelper debian/tmp
	$(RM) debian/debhelper* debian/files debian/*.substvars debian/*doc-base* debian/.javahelper_clean debian/*.debhelper.log

override_dh_installdocs:
	# Calling the Javadoc installer, provided by javahelper.
	jh_installjavadoc
	dh_installdocs
