File: rules

package info (click to toggle)
bowtie2 2.0.0-beta6-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,868 kB
  • sloc: cpp: 51,617; perl: 1,045; sh: 1,002; makefile: 272
file content (35 lines) | stat: -rwxr-xr-x 1,193 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
#!/usr/bin/make -f

pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
arch := $(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null | awk -F- '{print $$NF}')

# ENABLE_SSE=0
ifeq ($(arch),i386)
    ENABLE_SSE=1
endif
ifeq ($(arch),amd64)
    ENABLE_SSE=1
endif

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- ENABLE_SSE=$(ENABLE_SSE)

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/$(pkg)/usr/share/man/man1/
	help2man --name="wrapper for $(pkg)-align" --no-info \
		$(CURDIR)/$(pkg) > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$(pkg).1
	help2man --name="building a colorspace index for $(pkg)" --no-info \
		$(CURDIR)/$(pkg)-build > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$(pkg)-build.1
	help2man --name="extracts information from a $(pkg) index" --no-info \
		$(CURDIR)/$(pkg)-inspect > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$(pkg)-inspect.1
	help2man --name="ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences" --no-info \
	    $(CURDIR)/$(pkg)-align> $(CURDIR)/debian/$(pkg)/usr/share/man/man1/$(pkg)-align.1

override_dh_installchangelogs:
	dh_installchangelogs NEWS

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