File: rules

package info (click to toggle)
spview 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,276 kB
  • sloc: java: 9,321; xml: 63; makefile: 11; sh: 3
file content (19 lines) | stat: -rwxr-xr-x 422 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
#!/usr/bin/make -f
# debian/rules for spview

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

%:
	dh $@ --with javahelper

override_jh_build:
	jh_build --javacopts="-source 11 -target 11" --no-javadoc spview.jar sources

override_dh_install:
	# hack to get all files into the jar (jh_build can only include *.class)
	(cd resources && jar uf ../spview.jar *)
	dh_install

override_dh_auto_clean:
	dh_auto_clean
	rm -f *.jar