File: rules

package info (click to toggle)
drop-seq 2.4.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 105,536 kB
  • sloc: java: 32,939; sh: 344; xml: 258; makefile: 25
file content (41 lines) | stat: -rwxr-xr-x 1,223 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

# for hardening you might like to uncomment this:
# export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

%:
	dh $@ --with javahelper

override_dh_auto_configure:
	dh_auto_configure
	mkdir -p lib/test
	ln -s /usr/share/java/commons-collections4.jar lib/commons-collections4.jar
	ln -s /usr/share/java/commons-io.jar lib/commons-io.jar
	ln -s /usr/share/java/commons-lang.jar lib/commons-lang.jar
	ln -s /usr/share/java/commons-math3.jar lib/commons-math3.jar
	ln -s /usr/share/java/htsjdk.jar lib/htsjdk.jar
	ln -s /usr/share/java/la4j.jar lib/la4j.jar
	ln -s /usr/share/java/picard.jar lib/picard.jar
	ln -s /usr/share/java/snakeyaml.jar lib/snakeyaml.jar

	ln -s /usr/share/java/testng.jar lib/test/testng.jar
	ln -s /usr/share/java/junit4.jar lib/test/junit.jar

override_dh_auto_clean:
	rm -Rf lib

override_dh_fixperms:
	dh_fixperms
	find debian/drop-seq-testdata/usr/share -type f -exec chmod -x \{\} \;

# Invoking dh_installman with --language=C to get "traditional" manpages
# although the files we put in /usr/bin end with ".sh".
override_dh_installman:
	dh_installman --language=C