#!/usr/bin/make -f
# debian/rules for bowtie
# Andreas Tille <tille@debian.org>
# GPL

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

pkg=bowtie

%:
	dh $@

override_dh_auto_build:
	$(MAKE) allall

override_dh_auto_install:
#	for bin in bowtie bowtie-build bowtie-inspect ; do \
#	    help2man $(CURDIR)/$${bin} > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$${bin}.1 ; \
#	done
	help2man --name="ultrafast memory-efficient short read aligner" \
             $(CURDIR)/bowtie > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie.1
	help2man --name="building a colorspace index for bowtie" \
             $(CURDIR)/bowtie-build > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-build.1
	help2man --name="extracts information from a bowtie index" \
             $(CURDIR)/bowtie-inspect > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-inspect.1

override_dh_auto_clean:
	rm -f .bowtie*
	dh_auto_clean

get-orig-source:
	. debian/get-orig-source
