Add test suite.
[srt2vtt.git] / Makefile.am
1 GOBJECTS = $(SOURCES:%.scm=%.go)
2
3 nobase_mod_DATA = $(SOURCES)
4 nobase_go_DATA = $(GOBJECTS)
5
6 # Make sure source files are installed first, so that the mtime of
7 # installed compiled files is greater than that of installed source
8 # files.  See
9 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
10 # for details.
11 guile_install_go_files = install-nobase_goDATA
12 $(guile_install_go_files): install-nobase_modDATA
13
14 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
15 SUFFIXES = .scm .go
16 .scm.go:
17         $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
18
19 moddir=$(prefix)/share/guile/site/2.0
20 godir=$(libdir)/guile/2.0/ccache
21
22 SOURCES =                                       \
23   srt2vtt.scm                                   \
24   srt2vtt/subrip.scm                            \
25   srt2vtt/webvtt.scm                            \
26   srt2vtt/ui.scm
27
28 TESTS =                                         \
29   tests/subrip.scm                              \
30   tests/webvtt.scm
31
32 TEST_EXTENSIONS = .scm
33
34 SCM_LOG_COMPILER = $(GUILE)
35 AM_SCM_LOG_FLAGS = --no-auto-compile -L $(top_srcdir)
36
37 CLEANFILES =                                    \
38   $(GOBJECTS)                                   \
39   $(TESTS:tests/%.scm=%.log)
40
41 EXTRA_DIST =                                    \
42   $(SOURCES)                                    \
43   $(TESTS)                                      \
44   tests/utils.scm                               \
45   pre-inst-env.in
46
47 dist_bin_SCRIPTS = scripts/srt2vtt