Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # DH_VERBOSE := 1
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 DPKG_EXPORT_BUILDFLAGS = 1
7 include /usr/share/dpkg/default.mk
8
9 export JAVA_HOME := /usr/lib/jvm/default-java
10
11 %:
12 dh $@ --with maven_repo_helper
13
14 override_dh_auto_clean:
15 dh_auto_clean
16 if [ -e src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c.save ]; then \
17 mv src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c.save src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c; \
18 fi
19 # Cleaning the C part
20 cd src/main/c/ && make clean
21 # Cleaning the custom pom
22 -rm debian/pom.xml
23
24 override_dh_auto_configure:
25 # Putting the version of fermi-lite in the JNI file so that is can output version information.
26 cp src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c.save
27 fmlVersion=$$(dpkg -s libfml-dev | grep "Version" | sed 's/Version: \(.*\)-.*/\1/') && \
28 sed -i "s/FML_COMMIT/\"$$fmlVersion\"/" src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c
29 # Putting the version number in the custom pom.
30 sed 's/\(VERSION_PACKAGE\)/\1$(DEB_VERSION_UPSTREAM)/; s/VERSION_PACKAGE\(.*\)+dfsg[0-9]*/\1/' debian/pom.xml.in > debian/pom.xml
31 @ echo 'blhc: ignore-line-regexp: Compiling .*\.gradle.*'
32 dh_auto_configure
33
34 override_dh_auto_test:
35 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
36 # The shared lib should be looked for in its build directory.
37 LD_LIBRARY_PATH="$$LD_LIBRARY_PATH:$$(readlink -f src/main/c)" dh_auto_test
38 endif