File: rules

package info (click to toggle)
hessian 4.0.38-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,428 kB
  • ctags: 2,888
  • sloc: java: 21,407; xml: 108; makefile: 16; sh: 12
file content (25 lines) | stat: -rwxr-xr-x 673 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
25
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/servlet-api-3.1.jar

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

%:
	dh $@ --with javahelper

override_jh_build:
	jh_build --javacopts=-g hessian.jar com

override_dh_auto_install:
	mh_install -plibhessian-java

override_dh_auto_clean:
	mh_clean

get-orig-source:
	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
	uscan --force-download --download-current-version --no-symlink

get-orig-pom:
	wget http://central.maven.org/maven2/com/caucho/hessian/$(DEB_UPSTREAM_VERSION)/hessian-$(DEB_UPSTREAM_VERSION).pom -O debian/pom.xml