File: rules

package info (click to toggle)
libgoby-java 3.3.1%2Bdfsg2-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 58,108 kB
  • sloc: java: 78,105; cpp: 5,011; xml: 3,170; python: 2,108; sh: 1,575; ansic: 277; makefile: 114
file content (25 lines) | stat: -rwxr-xr-x 855 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

%:
	dh $@ --with javahelper

override_dh_clean:
	dh_clean
	rm -rf goby-distribution/test-data goby-distribution/test-results
	rm -rf test-results/

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Create a symlink to the directory with test data for tests run from the
	# goby-distribution directory.
	ln -s ../test-data goby-distribution/test-data
	# The test-results directory should exist because test classes will write inside.
	if [ ! -e test-results ]; then mkdir test-results/; fi
	# Putting the JRI location in the path, as indicated in GobyRengine.java.
	# Also indicating R_HOME, as found in http://rforge.net/JRI/.
	export LD_LIBRARY_PATH="$$LD_LIBRARY_PATH:/usr/lib/R/site-library/rJava/jri" && \
	        export R_HOME="/usr/lib/R" && \
	        dh_auto_test --no-parallel
endif