File: rules

package info (click to toggle)
seqprep 1.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 64,396 kB
  • sloc: ansic: 2,431; python: 165; sh: 89; makefile: 39
file content (33 lines) | stat: -rwxr-xr-x 969 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_CFLAGS_MAINT_APPEND=-std=gnu90
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	cp SeqPrep seqprep
	TZ=UTC ronn -r --manual=seqprep --organization='Cancer Therapeutics Innovation Group' debian/seqprep.1.ronn
	markdown_py -f README.html README.md

override_dh_clean:
	dh_clean
	rm -f seqprep
	rm -f debian/*.1
	rm -f README.html

override_dh_auto_test:
	# This checks that the tests run and produce byte-identical results.
	cd Test && mkdir -p out info && \
	    bash -xc 'gzcat(){ zcat "$$@" ; } ; . RUNTEST.sh'
	[ `cat Test/info/pe_*.txt | md5sum | cut -b -10` = 8bc8e0787e ]
	# remove output dirs right after testing to make sure the files
	# will not be included in the data package
	rm -rf Test/info Test/out

override_dh_install-indep:
	dh_install
	sed -i 's#../SeqPrep#/usr/bin/seqprep#' $(CURDIR)/debian/seqprep-data/usr/share/doc/seqprep/examples/RUNTEST.sh