#!/usr/bin/make -f
# -*- makefile -*-

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

VERSION  := $(shell dpkg-parsechangelog | grep '^Version:' | sed 's/^Version: \(.*\)-1/\1/')

%:	
	dh $@ --with javahelper


override_dh_auto_build:
	mkdir -p classes
	javac -cp src -source 1.5 -target 1.5 -d  classes   $(shell find src -name "*.java")
	jar -cf neobio-$(VERSION).jar -C classes neobio -C bin neobio/gui/icons

override_dh_clean:
	rm -f neobio*.jar
	rm -rf classes
	dh_clean

get-orig-source:
	. debian/get-orig-source
