File: rules

package info (click to toggle)
gmap 2017-01-14-1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 32,596 kB
  • ctags: 10,947
  • sloc: ansic: 489,036; perl: 5,420; sh: 4,248; makefile: 799
file content (44 lines) | stat: -rwxr-xr-x 1,487 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
pkg 	:= $(shell dpkg-parsechangelog --show-field=Source)
version	:= $(shell dpkg-parsechangelog --show-field=Version)
mandir  := $(CURDIR)/debian/$(pkg)/usr/share/man/man1
utildir  := $(CURDIR)/util
bindir  := $(CURDIR)/src

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
EXTRA_CONFIGURE_ARGS =
ifeq ($(DEB_HOST_ARCH), i386)
EXTRA_CONFIGURE_ARGS += --enable-sse4.1=no --disable-simd
endif

HELP2MAN = /usr/bin/help2man --no-info --version-string="$(version)"

%:
	dh  $@ --parallel --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- --enable-shared --with-gmapdb=/var/cache/gmap \
	--bindir=/usr/lib/gmap $(EXTRA_CONFIGURE_ARGS)

override_dh_auto_install:
	mkdir -p $(mandir)
	$(HELP2MAN) --name='Genomic Mapping and Alignment Program' \
	$(bindir)/gmap |debian/filter.pl >$(mandir)/gmap.1;
	$(HELP2MAN) --name='Genomic Short-read Nucleotide Alignment Program' \
	$(bindir)/gsnap |debian/filter.pl >$(mandir)/gsnap.1;
	$(HELP2MAN) --name='Tool for genome database creation for GMAP or GSNAP' \
	$(utildir)/gmap_build |debian/filter.pl >$(mandir)/gmap_build.1;
	dh_auto_install

override_dh_install:
	dh_install
	mkdir -p debian/$(pkg)/usr/bin
	for bin in gmap_build gmap gsnap \
	  $(shell cd $(CURDIR)/debian/$(pkg)/usr/lib/gmap/; ls -1 gmap.*; ls -1 gsnap.*); \
	  do ln -s /usr/lib/gmap/$$bin debian/$(pkg)/usr/bin/$$bin; \
	done

override_dh_auto_test:
	dh_auto_test --no-parallel