File: rules

package info (click to toggle)
georegression 0.24%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 2,248 kB
  • sloc: java: 23,565; makefile: 174; python: 45
file content (26 lines) | stat: -rwxr-xr-x 1,099 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

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

export JAVA_HOME = /usr/lib/jvm/default-java
export CLASSPATH = /usr/share/java/auto64fto32f.jar:/usr/share/java/ddogleg.jar:/usr/share/java/ejml-core.jar:/usr/share/java/ejml-fdense.jar:/usr/share/java/ejml-simple.jar

UPSTREAM_VERSION = $(DEB_VERSION_UPSTREAM:%+ds=%)

%:
	dh $@ --with javahelper

override_dh_auto_build:
	jh_build --no-javadoc georegression-autocode.jar autocode
	java -cp debian/_jh_build.georegression-autocode:/usr/share/java/auto64fto32f.jar georegression.Autocode64to32App
	jh_build --no-javadoc --javacopts '-source 11' georegression-$(UPSTREAM_VERSION).jar main/src
	ln -s georegression-$(UPSTREAM_VERSION).jar georegression.jar
	CLASSPATH=$(CLASSPATH):georegression.jar jh_build --no-javadoc --javacopts '-source 11' test.jar main/test
	rm georegression-autocode.jar

override_dh_auto_test:
	java -jar /usr/share/java/junit-platform-console-standalone.jar -cp georegression.jar:test.jar --select-package georegression

override_dh_auto_clean:
	find . -name '*_F32.java' | xargs --no-run-if-empty rm
	dh_auto_clean