#!/usr/bin/make -f

# DH_VERBOSE := 1

DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

%:
	dh $@ --with javahelper

override_dh_auto_build:
	javac -source 1.7 -target 1.7 artificialFastqGenerator/*.java && \
        jar -cmf META-INF/MANIFEST.MF $(DEBPKGNAME).jar artificialFastqGenerator/*.class

override_dh_auto_test:
	java -jar $(DEBPKGNAME).jar -R miniReference.fasta -O C1 -S ">1" -E ">" -URQS true -SE true -F1 test1.fastq -F2 test2.fastq
	rm C1.1.fastq C1.2.fastq

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