File: rules

package info (click to toggle)
libhibernate-jbosscache-java 3.6.8-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 480 kB
  • sloc: java: 3,121; xml: 738; makefile: 19; sh: 13
file content (26 lines) | stat: -rwxr-xr-x 687 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
export CLASSPATH=$(shell for jar in `cat debian/classpath`; do echo -n "$${jar}:"; done)
export DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog |grep Version|awk -F": " '{print $$2}'|sed -e 's/-.*//')

%:
	dh --with javahelper $@

override_jh_build:
	jh_build --javacopts="-source 1.5 -target 1.5" --javadoc-opts="-source 1.5" \
		hibernate-jbosscache.jar src/main

get-orig-source:
	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
	uscan \
		--verbose \
		--no-symlink \
		--destdir $(CURDIR)      \
		--watchfile debian/watch \
		--force-download \
		--debug \
		--download-version $(DEB_UPSTREAM_VERSION) \
		--rename