File: rules

package info (click to toggle)
transdecoder 3.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,356 kB
  • ctags: 274
  • sloc: perl: 5,454; sh: 81; makefile: 51
file content (39 lines) | stat: -rwxr-xr-x 1,137 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
#!/usr/bin/make -f

DH_VERBOSE := 1
DEBVERS        := $(shell dpkg-parsechangelog --show-field=Version)

%:
	dh $@ --parallel

override_dh_auto_clean:
	cd ./sample_data && for script in ./*/cleanme.pl; do $$($$script); done

override_dh_auto_build:

override_dh_auto_test:
	dh_auto_test
	cd ./sample_data && for script in ./*/cleanme.pl; do $$($$script); done

override_dh_install:
	dh_install
	find debian/transdecoder -name '*.p?' | xargs sed -i \
                's=^#!/usr/local/bin/perl=#!/usr/bin/perl='
	find debian/*/usr/lib/transdecoder -type d -empty -delete

override_dh_installman:
	pod2man --section=1 --center="Transcriptome Protein Prediction" \
		--release="$(DEBVERS)" TransDecoder.LongOrfs > \
		debian/TransDecoder.LongOrfs.1
	pod2man --section=1 --center="Transcriptome Protein Prediction" \
		--release="$(DEBVERS)" TransDecoder.Predict > \
		debian/TransDecoder.Predict.1
	dh_installman

override_dh_fixperms:
	dh_fixperms
	chmod -x debian/transdecoder/usr/lib/transdecoder/PerlLib/Fasta_retriever.pm

override_dh_clean:
	# generated man pages
	dh_clean debian/TransDecoder.LongOrfs.1 debian/TransDecoder.Predict.1