1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/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
# export DEB_BUILD_MAINT_OPTIONS = hardening=+all
pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
%:
dh $@
override_dh_auto_build:
$(MAKE) allall
override_dh_auto_install:
help2man --name="ultrafast memory-efficient short read aligner" --no-info \
$(CURDIR)/bowtie > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie.1
help2man --name="building a colorspace index for bowtie" --no-info \
$(CURDIR)/bowtie-build > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-build.1
help2man --name="extracts information from a bowtie index" --no-info \
$(CURDIR)/bowtie-inspect > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/bowtie-inspect.1
override_dh_compress:
dh_compress -X.ebwt
# Fix bowtie-examples access mode for files in examples/
override_dh_fixperms-indep:
dh_fixperms
chmod 644 debian/bowtie-examples/usr/share/doc/bowtie/examples/indexes/*
# Following line is not needed because gzipped genome/ (by dh_compress) is always 644.
# chmod 644 debian/bowtie-examples/usr/share/doc/bowtie/examples/genomes/*
override_dh_auto_clean:
rm -f .bowtie*
dh_auto_clean
override_dh_auto_test:
ln -s debian/tests
sh debian/tests/run-unit-test test_at_build_time
rm -f tests examples[0-9].out
get-orig-source:
uscan --verbose --force-download --repack --compress xz
|