File: rules

package info (click to toggle)
libhibernate3-java 3.6.9.Final-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 34,964 kB
file content (23 lines) | stat: -rwxr-xr-x 730 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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