File: rules

package info (click to toggle)
atinject-jsr330 1.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 232 kB
  • sloc: java: 889; xml: 290; sh: 52; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 715 bytes parent folder | download | duplicates (2)
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

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

%:
	dh $@ --with javahelper

override_jh_build:
	ant -f debian/build.xml

override_dh_install:
	mh_installjar -plibatinject-jsr330-api-java -l --usj-name=atinject-jsr330-api -j$(VERSION) debian/pom.xml build/javax.inject.jar
	mh_installjar -plibatinject-jsr330-api-java -l --usj-name=atinject-jsr330-tck -j$(VERSION) pom.xml build/javax.inject-tck.jar
	mh_installpoms -plibatinject-jsr330-api-java

override_dh_clean:
	dh_clean
	mh_clean
	rm -Rf build

get-orig-source:
	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
	uscan --rename --force-download