#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

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

DEB_BUILD_ROOT := $(CURDIR)

build:
	mvn install -Dmaven.repo.local=`pwd`/hila-shell/maven-repo -Phila-shell; cd hila-shell; mvn install assembly:assembly -Dmaven.repo.local=`pwd`/maven-repo;mvn -q package -Ppackman -Dmaven.test.skip -Dmaven.repo.local=`pwd`/maven-repo -Dpackage.version=2.3.0 -Dpackage.release=5 -Ddistribution=Debian -Dpackage.type=prep.src.deb -Dpackage.config.dir=src/main/package -DindexJars -B -Dskip.os.detect;cp -R target/Debian/source/unicore-hila-shell-2.3.0 $(DEB_BUILD_ROOT)/unicore-hila-shell

install:
	dh_testdir
	dh_testroot
	dh_prep  
	dh_installdirs

	mkdir $(DEB_BUILD_ROOT)/debian/unicore-hila-shell; cp -R $(DEB_BUILD_ROOT)/unicore-hila-shell/* $(DEB_BUILD_ROOT)/debian/unicore-hila-shell/

# Build architecture-independent files here.
binary-indep: install
	dh_testdir
	dh_testroot
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep
.PHONY: clean binary-indep binary install
