File: rules

package info (click to toggle)
augustus 3.4.0%2Bdfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 758,480 kB
  • sloc: cpp: 65,451; perl: 21,436; python: 3,927; ansic: 1,240; makefile: 1,032; sh: 189; javascript: 32
file content (93 lines) | stat: -rwxr-xr-x 3,286 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export AUGUSTUS_CONFIG_PATH=$(CURDIR)/config
.PHONY: bam2hints homGeneMapping joingenes

%:
	dh $@

bin:
	mkdir -p bin

aln2wig: bin
		$(MAKE) -C auxprogs/aln2wig

bam2hints: bin
	$(MAKE) -C auxprogs/bam2hints

bam2wig: bin
		$(MAKE) -C auxprogs/bam2wig

compileSpliceCands: bin
	$(MAKE) -C auxprogs/compileSpliceCands

filterBam: bin
	$(MAKE) -C auxprogs/filterBam

homGeneMapping: bin
	$(MAKE) -C auxprogs/homGeneMapping/src

joingenes: bin
	$(MAKE) -C auxprogs/joingenes

override_dh_auto_clean:
	$(MAKE) -C auxprogs/bam2hints clean
	$(MAKE) -C auxprogs/homGeneMapping clean
	$(MAKE) -C auxprogs/joingenes clean
	$(MAKE) -C auxprogs/aln2wig clean
	$(MAKE) -C auxprogs/bam2wig clean
	$(MAKE) -C auxprogs/compileSpliceCands clean
	$(MAKE) -C auxprogs/filterBam clean
	rm -rf bin
	rm -f debian/*substvars
	rm -f debian/mansrc/*.1
	find . -name "__pycache__" | xargs -r rm -r
	find src -name "*.o" | xargs -r rm
	find auxprogs -name "*.o" | xargs -r rm
	rm -f auxprogs/utrrnaseq/Debug/utrrnaseq src/augustus src/etraining src/fastBlockSearch src/getSeq src/load2db src/load2sqlitedb src/pp_simScore src/prepareAlign

override_dh_auto_build: aln2wig bam2hints bam2wig compileSpliceCands filterBam homGeneMapping joingenes
	dh_auto_build
	asciidoctor -a docdate='' -b manpage --destination-dir=debian/mansrc/ mansrc/*adoc

override_dh_installchangelogs:
	dh_installchangelogs -k docs/HISTORY.TXT

override_dh_auto_install:
	mkdir -p         debian/augustus/usr/bin
	install bin/*    debian/augustus/usr/bin
	install auxprogs/bam2wig/bam2wig \
	                 debian/augustus/usr/bin
	install auxprogs/compileSpliceCands/compileSpliceCands \
                     debian/augustus/usr/bin
	install auxprogs/homGeneMapping/src/homGeneMapping \
                     debian/augustus/usr/bin
	install auxprogs/joingenes/joingenes \
	                 debian/augustus/usr/bin
	mkdir -p         debian/augustus/usr/share/augustus
	cp -r scripts    debian/augustus/usr/share/augustus
	chmod -R -x      debian/augustus/usr/share/augustus/scripts/*
	rm -rf           debian/augustus/usr/share/augustus/scripts/*.patch \
	                 debian/augustus/usr/share/augustus/scripts/executeTestCGP.py \
	                 debian/augustus/usr/share/augustus/scripts/*.txt
	chmod +x         debian/augustus/usr/share/augustus/scripts/checkUTR \
	                 debian/augustus/usr/share/augustus/scripts/*.pl*
	mkdir -p         debian/augustus-doc/usr/share/doc/augustus
	cp README*       debian/augustus-doc/usr/share/doc/augustus
	cp docs/*.txt    debian/augustus-doc/usr/share/doc/augustus
	cp docs/RUNNING* debian/augustus-doc/usr/share/doc/augustus
	cp docs/README*  debian/augustus-doc/usr/share/doc/augustus
	cp docs/EXONCAND-MSAS-CGP.md \
	                 debian/augustus-doc/usr/share/doc/augustus
	cp -r docs/tutorial \
	                 debian/augustus-doc/usr/share/doc/augustus
	cp -r docs/tutorial-cgp \
	                 debian/augustus-doc/usr/share/doc/augustus
	mkdir -p         debian/augustus-data/usr/share/augustus
	cp -r config     debian/augustus-data/usr/share/augustus
	find             debian/augustus-data/usr/share/augustus \
	  -type f -exec chmod -x {} \;

override_dh_compress:
	dh_compress -Xtutorial