File: rules

package info (click to toggle)
snpsift 5.1%2Bdfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 28,672 kB
  • sloc: java: 15,123; xml: 159; sh: 108; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 657 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

# DH_VERBOSE := 1

include /usr/share/dpkg/default.mk

export JAVA_HOME=/usr/lib/jvm/default-java
export LC_ALL=C.UTF-8

%:
	dh $@ --with javahelper

override_dh_auto_clean:
	dh_auto_clean
	# Removing the unit tests we copied into a subdirectory of src/test.
	if [ -e src/test/java/org ]; then \
	        $(RM) -rf src/test/java/org; \
	fi

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# Moving the unit tests into a subdir of src/test so that Maven sees them.
	mkdir -p src/test/java/org/snpsift/testCases
	cp -a src/main/java/org/snpsift/testCases/unit src/test/java/org/snpsift/testCases
	dh_auto_test
endif