-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
61 lines (50 loc) · 1.68 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
AM_DEFAULT_SOURCE_EXT = .cc
AM_CPPFLAGS = -Wall -I$(srcdir)
AM_CXXFLAGS = $(ALL_CXXFLAGS) -g -O3
AM_LDFLAGS =
bin_PROGRAMS = ufasta
noinst_HEADERS = $(YAGGO_SRCS) common.hpp
BUILT_SOURCES = $(YAGGO_SRCS)
CLEANFILES =
DISTCLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST =
# Yaggo automatic rules with silencing
V_YAGGO = $(V_YAGGO_$(V))
V_YAGGO_ = $(V_YAGGO_$(AM_DEFAULT_VERBOSITY))
V_YAGGO_0 = @echo " YAGGO " $@;
.yaggo.hpp:
# $(V_YAGGO)$(YAGGO) --license $(srcdir)/header-license -o $@ $<
$(V_YAGGO)$(YAGGO) -o $@ $<
YAGGO_SRCS = # Append all file to be built by yaggo
##################
# Build binaries #
##################
SUB_CMDS = one.cc sizes.cc head.cc tail.cc rc.cc n50.cc extract.cc \
format.cc sort.cc dsort.cc split.cc rsort.cc
if HAVE_BOOST_REGEX
AM_LDFLAGS += -lboost_regex
SUB_CMDS += hgrep.cc dgrep.cc
endif
ufasta_SOURCES = ufasta.cc common.cc $(SUB_CMDS)
YAGGO_SRCS += $(SUB_CMDS:.cc=_cmdline.hpp)
#########
# Tests #
#########
tests/testsh: tests/testsh.in
@mkdir -p $(dir $@)
$(AM_V_GEN)sed -e 's,[@]SRCDIR[@],$(abs_srcdir),g' \
-e 's,[@]BUILDDIR[@],$(abs_builddir),g' $< > $@
@chmod a+x $@
check_PROGRAMS = random_sequence
check_SCRIPTS = tests/testsh
CLEANFILES += $(check_SCRIPTS)
EXTRA_DIST += tests/testsh.in
TESTS = tests/test_head.sh tests/test_tail.sh tests/test_rc.sh \
tests/test_one.sh tests/test_hgrep.sh tests/test_n50.sh \
tests/test_sizes.sh tests/test_extract.sh \
tests/test_format.sh tests/test_sort.sh tests/test_dsort.sh \
tests/test_dgrep.sh tests/test_split.sh tests/test_rsort.sh
EXTRA_DIST += $(TESTS) tests/test1.fasta
TEST_EXTENSIONS = .sh
SH_LOG_COMPILER = ./tests/testsh