File: rules

package info (click to toggle)
ssake 3.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,960 kB
  • ctags: 83
  • sloc: perl: 2,131; python: 366; sh: 219; makefile: 22
file content (32 lines) | stat: -rwxr-xr-x 789 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
#!/usr/bin/make -f
# debian/rules file for ssake
# (C) Andreas Tille
# GPL

pkg := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
examples=$(pkg)-examples

%:
	dh $@

BINDIR := $(CURDIR)/debian/$(pkg)/usr/bin
DOCDIR := $(CURDIR)/debian/$(examples)/usr/share/doc/$(pkg)

override_dh_install:
	dh_install
	cp -a SSAKE $(BINDIR)/ssake
	cp -a tools/TQS.py $(BINDIR)/tqs

override_dh_installexamples:
	dh_installexamples
	for sh in $(DOCDIR)/examples/*.sh ; do \
	    sed -i '1 i #!/bin/sh' $${sh} ; \
	done

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
TESTDIR := $(shell mktemp -d)
override_dh_auto_test:
	cp -a test/* $(TESTDIR)
	cd $(TESTDIR) && $(CURDIR)/SSAKE -f Herpesvirus_3.60kb.reads.fa -m 16 -o 2 -r 0.6 -p 0 -t 0 -c 1 -w 5 -b myFirstSSAKErun
	rm -rf $(TESTDIR)
endif