File: rules

package info (click to toggle)
jetty9 9.4.16-0%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 62,092 kB
  • sloc: java: 379,695; xml: 23,723; javascript: 1,040; sh: 937; jsp: 318; sql: 38; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 722 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export JAVA_HOME := /usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

override_dh_auto_build:
	rm -Rf debian/maven-repo/org/eclipse/jetty
	dh_auto_build -- install -DskipTests --projects !jetty-distribution
	dh_auto_build -- package -DskipTests --projects jetty-distribution

override_dh_auto_install:
	dh_auto_install
	rm -Rf debian/libjetty9-java/usr/share/maven-repo/org/eclipse/jetty/jetty-distribution/
	rm -Rf debian/libjetty9-java/usr/share/maven-repo/org/eclipse/jetty/jetty-home/

override_dh_link:
	VERSION=$(shell grep '<version>' pom.xml | head -1 | tail -1 | sed -e 's/.*<version>\(.*\)<\/version>.*/\1/') \
	dh_link

override_dh_installchangelogs:
	dh_installchangelogs VERSION.txt