File: rules

package info (click to toggle)
commons-pool 1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,476 kB
  • sloc: java: 12,132; xml: 1,571; makefile: 16
file content (24 lines) | stat: -rwxr-xr-x 642 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

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

JAVA_HOME	:= /usr/lib/jvm/default-java
DEB_JARS        := junit ant-junit
PACKAGE		:= $(DEB_SOURCE_PACKAGE)
VERSION 	:= $(DEB_UPSTREAM_VERSION)

DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_BUILD_TARGET := dist
DEB_ANT_CHECK_TARGET := test

# Per Debian Java Policy, install a versioned JAR and an unversioned symlink
binary-post-install/lib$(PACKAGE)-java::
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l pom.xml dist/$(PACKAGE)-$(VERSION).jar

clean::
	mh_clean

get-orig-source:
	uscan --force-download --rename