rules 915 Bytes
Newer Older
1 2 3 4 5
#!/usr/bin/make -f

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

6 7 8 9
PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_JARS             := ant-nodeps maven-core maven-model maven-plugin-api maven-project file-management plexus-utils plexus-container-default-alpha
10
DEB_ANT_BUILD_TARGET := package #javadoc
11 12 13
DEB_ANT_BUILDFILE    := /usr/share/maven-ant-helper/maven-build.xml
DEB_ANT_ARGS         := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
API_DOCS             := target/api
14 15

get-orig-source:
16
	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
Torsten Werner's avatar
Torsten Werner committed
17 18

binary-post-install/lib$(PACKAGE)-java::
19 20 21 22 23
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l pom.xml target/$(PACKAGE)-$(VERSION).jar

clean::
	-rm -rf debian/tmp