File: rules

package info (click to toggle)
beansbinding 1.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,340 kB
  • sloc: java: 12,683; xml: 502; sh: 44; makefile: 12
file content (18 lines) | stat: -rwxr-xr-x 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/java/java_defaults.mk

export JAVA_HOME=/usr/lib/jvm/default-java
VERSION := $(shell dpkg-parsechangelog | grep ^Version: | sed -r 's/^.*:\ ([0-9\.]+)(-|\+).*/\1/')

%:
	dh $@ --with javahelper --with jh_maven_repo_helper

override_dh_auto_build:
	ant -f build.xml dist \
		-Djavac.source=$(java_compat_level) \
		-Djavac.target=$(java_compat_level) \
		-Djavac.compilerargs=

override_jh_installlibs:
	jh_installlibs --upstream-version=$(VERSION)