File: rules

package info (click to toggle)
postgis-java 1%3A2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 672 kB
  • sloc: java: 4,890; xml: 741; makefile: 15; sh: 12
file content (24 lines) | stat: -rwxr-xr-x 546 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

include /usr/share/dpkg/pkg-info.mk

UPSTREAM_VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')

%:
	dh $@ --buildsystem maven

override_dh_auto_clean:
	dh_auto_clean
	mh_clean

override_dh_auto_build:
	dh_auto_build --sourcedirectory jdbc

override_dh_auto_test:
	dh_auto_test --sourcedirectory jdbc

override_dh_auto_install:
	mh_installjar -plibpostgis-java -l jdbc/pom.xml jdbc/target/postgis-jdbc-$(UPSTREAM_VERSION).jar
	mh_installpoms -plibpostgis-java