#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export CLASSPATH=/usr/share/java/commons-cli.jar:/usr/share/java/commons-lang.jar:/usr/share/java/commons-io.jar

%:
	dh $@ --with javahelper

override_dh_auto_clean:
	rm -rf lib build *.jar junit-tmp.xml TEST-*.xml
	find test -name '*.class' -delete

override_dh_auto_test:
	cp debian/junit.xml ./junit-tmp.xml
	ant -f junit-tmp.xml junit

override_dh_clean:
	dh_clean
	rm -f debian/*.log

override_dh_auto_build:
	jh_build rdp-readseq.jar src
	cd src ; jar uf ../rdp-readseq.jar data
