Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # debian/rules for bowtie
3 # Andreas Tille <[email protected]>
4 # GPL
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
10
11 pkg := bowtie
12
13 %:
14 dh $@
15
16 override_dh_auto_build:
17 $(MAKE) allall
18
19 override_dh_auto_install-arch:
20 # remove strange byte-compyled Python code bowtie-buildc (no idea how and why it was created)
21 find . -name bowtie-buildc -delete
22 find . -name .cvsignore -delete
23
24 override_dh_install:
25 dh_install
26 if [ -d debian/tmp/usr/local/bin ] ; then \
27 dh_install -a usr/local/bin usr ; \
28 fi
29
30 override_dh_installman-arch:
31 help2man --name="ultrafast memory-efficient short read aligner" --no-info \
32 $(CURDIR)/bowtie > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie.1
33 help2man --name="building a colorspace index for bowtie" --no-info \
34 $(CURDIR)/bowtie-build > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-build.1
35 help2man --name="extracts information from a bowtie index" --no-info \
36 $(CURDIR)/bowtie-inspect > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-inspect.1
37
38 override_dh_compress:
39 dh_compress -X.ebwt
40
41 # Fix bowtie-examples access mode for files in examples/
42 override_dh_fixperms-indep:
43 dh_fixperms
44 chmod 644 debian/bowtie-examples/usr/share/doc/bowtie/examples/indexes/*
45 # Following line is not needed because gzipped genome/ (by dh_compress) is always 644.
46 # chmod 644 debian/bowtie-examples/usr/share/doc/bowtie/examples/genomes/*
47
48 override_dh_missing-indep:
49 dh_missing -i --list-missing
50
51 override_dh_auto_clean:
52 rm -f .bowtie*
53 rm -f .simple*
54 rm -rf __pycache__
55 dh_auto_clean
56
57 override_dh_auto_test:
58 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
59 unset LD_PRELOAD && make simple-test
60 ln -s debian/tests
61 unset LD_PRELOAD && sh debian/tests/run-unit-test test_at_build_time
62 rm -f tests examples[0-9].out
63 endif