debian swirl logo

Back to the packages list libhibernate3-java

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/maven.mk

JAVA_HOME            := /usr/lib/jvm/default-java
DEB_MAVEN_DOC_TARGET := javadoc:aggregate
DEB_BUILDDIR         := $(CURDIR)/project

# Avoid incremental builds when packaging a new upstream release by
# using the maven install target to ensure that artifacts are installed 
ifeq ($(shell echo -n $(DEB_VERSION) | sed -sre 's/^.*-(.*)$$/\1/'),1)
ifneq ($(shell dpkg-query -W -f= '$${Version}' $(DEB_SOURCE_PACKAGE)),\
		$(shell echo -n $(DEB_VERSION)))
DEB_MAVEN_BUILD_TARGET := install
endif
endif

clean::
		-rm -rf debian/null mvn-build

get-orig-source:
		uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename

Builds:

libhibernate3-java-doc
relational persistence for idiomatic java (documentation)
libhibernate3-java
relational persistence for idiomatic java