File: Makefile.am

package info (click to toggle)
trnascan-se 2.0.9%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, sid
  • size: 19,728 kB
  • sloc: ansic: 17,624; perl: 15,253; sh: 54; makefile: 50
file content (69 lines) | stat: -rw-r--r-- 3,248 bytes parent folder | download | duplicates (3)
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
## Makefile.am
## tRNAscan-SE
##
## Settings for generating Makefile.in

# not a GNU package
# build object files in their source location
AUTOMAKE_OPTIONS = foreign subdir-objects

# set flags
AM_CFLAGS = -O
LDADD = -lm

# macros for program dependencies
EUFIND = src/eufind_const.h src/eufind_main.c src/pavesi.c
SQUIDUTILS = src/seqstat_main.c src/reformat_main.c src/shuffle_main.c src/revcomp_main.c src/getopt.c
SQUIDSRC = src/alignio.c src/sqerror.c src/sqio.c src/iupac.c src/msf.c src/revcomp.c src/selex.c src/sre_ctype.c src/sre_math.c src/sre_string.c src/stack.c src/types.c src/gnuregex.c src/interleaved.c src/getopt.c
SQUIDHDRS = src/squid.h src/sqfuncs.h src/gnuregex.h
COVEMAIN = src/align_main.c src/build_main.c src/emit_main.c src/learnprior_main.c src/train_main.c src/scan_main.c src/score_main.c src/structcheck_main.c
COVESRC = src/align.c src/dbviterbi.c src/debug.c src/emit.c src/fast-dbviterbi.c src/fastmodelmaker.c src/konings.c src/lengthdist.c src/maxmodelmaker.c src/misc.c src/model.c src/modelmaking.c src/prior.c src/probify.c src/save.c src/smallviterbi.c src/scorestack.c src/structs.c src/trace.c src/viterbi.c $(SQUIDSRC)

# compile binaries
bin_PROGRAMS = bin/eufindtRNA bin/trnascan-1.4 bin/covels-SE bin/coves-SE
bin_eufindtRNA_SOURCES = $(SQUIDHDRS) $(SQUIDSRC) $(EUFIND)
bin_trnascan_1_4_SOURCES = src/trnascan.c
bin_trnascan_1_4_CFLAGS = -DTSCANDIR=\"$(pkgdatadir)\/models\"  $(AM_CFLAGS)
bin_covels_SE_SOURCES = $(COVESRC) src/scan_main.c
bin_coves_SE_SOURCES = $(COVESRC) src/score_main.c

# process scripts
dist_bin_SCRIPTS = bin/sstofa bin/fasta2gsi bin/EukHighConfidenceFilter tRNAscan-SE
# config file
dist_sysconf_DATA = tRNAscan-SE.conf
# for a few files, need to substitute perl path, bin directory, and lib directory
# first, define a function for it
do_subst = sed -e 's,\@bindir\@,$(bindir),g' -e 's,\@pkgdatadir\@,$(pkgdatadir),g' -e 's,[@]PERL[@],$(PERL),g' -e 's,\@INFERNAL\@,$(INFERNAL),g' -e 's,\@sysconfdir\@,$(sysconfdir),g'

# extra steps for cleaning/distribution
CLEANFILES = $(dist_bin_SCRIPTS) $(srcdir)/lib/*
include_HEADERS = $(srcdir)/src/*.h 
EXTRA_DIST = lib src/sstofa.in src/fasta2gsi.in EukHighConfidenceFilter tRNAscan-SE.src tRNAscan-SE.conf.src 

# then create build rules

tRNAscan-SE: tRNAscan-SE.src Makefile
	$(do_subst) < $(srcdir)/tRNAscan-SE.src > tRNAscan-SE
	chmod +x tRNAscan-SE

tRNAscan-SE.conf: tRNAscan-SE.conf.src Makefile
	$(do_subst) < $(srcdir)/tRNAscan-SE.conf.src > tRNAscan-SE.conf
	chmod +x tRNAscan-SE.conf

bin/sstofa: src/sstofa.in Makefile
	$(do_subst) < $(srcdir)/src/sstofa.in > bin/sstofa
	if [ -x bin/sstofa ] ; then chmod +x bin/sstofa ; fi

bin/fasta2gsi: src/fasta2gsi.in Makefile
	$(do_subst) < $(srcdir)/src/fasta2gsi.in > bin/fasta2gsi
	if [ -x bin/fasta2gsi ] ; then chmod +x bin/fasta2gsi ; fi

bin/EukHighConfidenceFilter: EukHighConfidenceFilter.in Makefile
	$(do_subst) < $(srcdir)/EukHighConfidenceFilter.in > bin/EukHighConfidenceFilter
	if [ -x bin/EukHighConfidenceFilter ] ; then chmod +x bin/EukHighConfidenceFilter ; fi

# copy data libraries
install-data-hook:
	test -d $(DESTDIR)/$(pkgdatadir) || mkdir -p $(DESTDIR)/$(pkgdatadir)
	chmod u+w $(DESTDIR)/$(pkgdatadir)
	cp -rf $(srcdir)/lib/* $(DESTDIR)/$(pkgdatadir)