#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk include /usr/share/javahelper/java-vars.mk include /usr/share/java/java_defaults.mk export LEIN_HOME=$(CURDIR)/.lein export LEIN_OFFLINE=true NAME=cheshire %: dh $@ --with javahelper --with maven_repo_helper override_dh_auto_configure: cd debian && ln -sf /usr/share/maven-repo . override_dh_auto_build: lein pom debian/pom.xml JAVA_SOURCE_VERSION=$(java_compat_level) JAVA_TARGET_VERSION=$(java_compat_level) lein jar # symlinks so we don't need a version in debian/*.poms cd target && ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar $(NAME).jar override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) lein test endif override_dh_clean: rm -f debian/maven-repo rm -Rf target ressources rm -f debian/pom.xml dh_clean