File: rules

package info (click to toggle)
atinject-jsr330 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 104 kB
  • sloc: java: 55; xml: 20; makefile: 17; sh: 13
file content (24 lines) | stat: -rwxr-xr-x 590 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
#!/usr/bin/make -f

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

%:
	dh $@ --with javahelper

override_jh_build:
	jh_build atinject-jsr330-api.jar javax

override_dh_install:
	mh_installjar -plibatinject-jsr330-api-java -l \
		--usj-name=atinject-jsr330-api --usj-version=$(VERSION) \
		debian/pom.xml atinject-jsr330-api.jar
	mh_installpoms -plibatinject-jsr330-api-java

override_dh_clean:
	dh_clean
	mh_clean

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