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

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

XP=xsltproc  \
      -''-nonet \
      -''-param man.charmap.use.subset "0" \
      -''-param make.year.ranges "1" \
      -''-param make.single.year.ranges "1" \
      -o debian/

SRCDIR=align

%:
	dh $@ --sourcedirectory=$(SRCDIR)

override_dh_auto_build:
	dh_auto_build
	#### This is how the *.jar can be recreated
	# cd display && mkdir -p lib && ant jar
	#### Unfortunately the command suggested in readme
	##      java -jar display/AmapDisplay.jar examples/BB12020.tfa.out
	#### segfaults.  So currently this display function is not supported

override_dh_installexamples:
	dh_installexamples
	chmod 644 debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/BB12020.tfa
