File: rules

package info (click to toggle)
libjsr305-java 0.1~%2Bsvn49-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 364 kB
  • ctags: 128
  • sloc: java: 571; xml: 217; makefile: 17; sh: 11
file content (26 lines) | stat: -rwxr-xr-x 560 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
24
25
26
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java

PACKAGE := jsr305
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')

%:
	dh $@ --with javahelper

override_jh_build:
	jh_build jsr305.jar ri/src

override_dh_auto_clean:
	dh_auto_clean
	mh_clean

get-orig-source:
	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
	./debian/orig-tar.sh

override_jh_installlibs:
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java --usj-version=$(DEB_UPSTREAM_VERSION) \
		-l ri/pom.xml $(PACKAGE).jar