Imported Debian patch 0.12.7-3
[bowtie.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for bowtie
3 # Andreas Tille <tille@debian.org>
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 := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
12
13 %:
14         dh $@
15
16 override_dh_auto_build:
17         $(MAKE) allall
18
19 override_dh_auto_install:
20         help2man --name="ultrafast memory-efficient short read aligner" --no-info \
21              $(CURDIR)/bowtie > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie.1
22         help2man --name="building a colorspace index for bowtie" --no-info \
23              $(CURDIR)/bowtie-build > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-build.1
24         help2man --name="extracts information from a bowtie index" --no-info \
25              $(CURDIR)/bowtie-inspect > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-inspect.1
26
27 override_dh_auto_clean:
28         rm -f .bowtie*
29         dh_auto_clean
30
31 get-orig-source:
32         . debian/get-orig-source