File: rules

package info (click to toggle)
htsjdk 2.18.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 42,876 kB
  • sloc: java: 90,844; sh: 138; xml: 43; python: 27; makefile: 25
file content (39 lines) | stat: -rwxr-xr-x 1,278 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

export DH_VERBOSE=1
export DH_OPTIONS

export ANT_HOME=/usr/share/ant
export JAVA_HOME=$(shell readlink -f /usr/bin/javac | sed "s:/bin/javac::")

export LC_ALL=C.UTF-8

%:
	dh  $@  --buildsystem=gradle --with javahelper,jh_maven_repo_helper

override_dh_auto_build:
	dh_auto_build -- jar javadoc

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# testng bug 895886: testng: jcommander classes not found
	dh_auto_build -- test
endif

override_jh_installlibs:
	jh_installlibs --version-strip='[+]dfsg[.0-9]*'

include /usr/share/dpkg/default.mk

# require network, not automatically run
# use it when the pom file must be re-downloaded from maven repo
BASE_URL:=https://repo.maven.apache.org/maven2/com/github/samtools/htsjdk
JPKG=htsjdk
WGET=wget --no-clobber
get-poms:
	$(RM) debian/$(JPKG).pom debian/$(JPKG).pom.asc
	# extract upstream version
	VERSION=$$(echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\([+]dfsg[.0-9]*\)$$//') ; \
	$(WGET) -q -O debian/$(JPKG).pom $(BASE_URL)/$$VERSION/$(JPKG)-$$VERSION.pom && \
	$(WGET) -q -O debian/$(JPKG).pom.asc $(BASE_URL)/$$VERSION/$(JPKG)-$$VERSION.pom.asc
	gpg --trust-model=always --status-fd 1 --no-default-keyring --keyring debian/broadinstitute-keyring.gpg --verify debian/$(JPKG).pom.asc