Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 pkg := bowtie2
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
7 export LANG=C
8 export LC_ALL=C.UTF-8
9
10 include /usr/share/dpkg/architecture.mk
11 export DEB_CFLAGS_MAINT_APPEND += -DSIMDE_ENABLE_OPENMP -fopenmp-simd -O3
12 export DEB_CXXFLAGS_MAINT_APPEND += -DSIMDE_ENABLE_OPENMP -fopenmp-simd -O3
13
14 EXTRA_OPTIONS =
15 ifneq ($(DEB_TARGET_ARCH),amd64)
16 EXTRA_OPTIONS += NO_TBB=1 POPCNT_CAPABILITY=
17 else
18 EXTRA_OPTIONS += POPCNT_CAPABILITY=1
19 endif
20
21 export EXTRA_OPTIONS
22
23 %:
24 dh $@
25
26 override_dh_auto_build:
27 LD_PRELOAD= dh_auto_build -- EXTRA_FLAGS="-std=c++98 $(LDFLAGS)" $(EXTRA_OPTIONS) HOSTNAME=reproducible-hostname
28 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
29 dh_auto_build -- doc/manual.html
30 endif
31
32 override_dh_auto_test:
33 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
34 LD_PRELOAD= make -j1 test
35 endif
36
37 override_dh_install:
38 dh_install -X.gitignore
39
40 override_dh_installman:
41 mkdir -p $(CURDIR)/debian/$(pkg)/usr/share/man/man1/
42 debian/help2man-wrapper $(pkg) "wrapper for $(pkg)-align-*"
43 debian/help2man-wrapper $(pkg)-build "wrapper for $(pkg)-build-*"
44 debian/help2man-wrapper $(pkg)-build-l "building a colorspace index for $(pkg)"
45 debian/help2man-wrapper $(pkg)-build-s "building a colorspace index for $(pkg)"
46 debian/help2man-wrapper $(pkg)-inspect "wrapper for $(pkg)-inspect-* index"
47 debian/help2man-wrapper $(pkg)-inspect-l "extracts information from a $(pkg) index"
48 debian/help2man-wrapper $(pkg)-inspect-s "extracts information from a $(pkg) index"
49 debian/help2man-wrapper $(pkg)-align-l "ultrafast and memory-efficient backend tool for aligning sequencing reads to long reference sequences"
50 debian/help2man-wrapper $(pkg)-align-s "ultrafast and memory-efficient backend tool for aligning sequencing reads to long reference sequences"
51 rm -f $(CURDIR)/debian/$(pkg)/usr/bin/bowtie2-buildc
52
53 override_dh_installchangelogs:
54 dh_installchangelogs NEWS
55
56 override_dh_gencontrol:
57 dh_gencontrol -- -Vsimde:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libsimde-dev")"