2017-12-09 17:01:40 +00:00
|
|
|
moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)
|
|
|
|
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache
|
|
|
|
|
|
|
|
GOBJECTS = $(MODULES:%.scm=%.go)
|
|
|
|
|
|
|
|
nobase_mod_DATA = $(MODULES) $(NOCOMP_SOURCES)
|
|
|
|
nobase_go_DATA = $(GOBJECTS)
|
|
|
|
|
|
|
|
# Make sure source files are installed first, so that the mtime of
|
|
|
|
# installed compiled files is greater than that of installed source
|
|
|
|
# files. See
|
|
|
|
# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
|
|
|
|
# for details.
|
|
|
|
guile_install_go_files = install-nobase_nodist_guileobjectDATA
|
|
|
|
$(guile_install_go_files): install-nobase_dist_guilemoduleDATA
|
|
|
|
|
|
|
|
GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
|
|
|
|
SUFFIXES = .scm .go
|
|
|
|
.scm.go:
|
|
|
|
$(AM_V_GEN)$(top_builddir)/pre-inst-env \
|
|
|
|
$(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
|
|
|
|
|
|
|
|
TEST_EXTENSIONS = .scm
|
|
|
|
SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE)
|
|
|
|
AM_SCM_LOG_FLAGS = --no-auto-compile
|
|
|
|
|
|
|
|
if HAVE_GENHTML
|
|
|
|
|
|
|
|
lcov.info: all
|
|
|
|
$(top_builddir)/pre-inst-env $(top_builddir)/tools/coverage
|
|
|
|
|
|
|
|
coverage: lcov.info
|
|
|
|
$(GENHTML) -o $(top_builddir)/coverage lcov.info
|
|
|
|
|
|
|
|
endif # HAVE_GENHTML
|
|
|
|
|
|
|
|
test-list: ; @echo $(TESTS)
|
|
|
|
|
2018-11-08 19:53:55 +00:00
|
|
|
.PHONY: check-spec
|
|
|
|
check-spec:
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) -L -C tests/spec check
|
|
|
|
|
2017-12-09 17:01:40 +00:00
|
|
|
MODULES = \
|
2018-11-21 15:59:19 +00:00
|
|
|
geesh/built-ins/break.scm \
|
2018-11-25 06:30:09 +00:00
|
|
|
geesh/built-ins/cd.scm \
|
2018-11-25 19:24:35 +00:00
|
|
|
geesh/built-ins/colon.scm \
|
2018-11-21 15:59:19 +00:00
|
|
|
geesh/built-ins/continue.scm \
|
2018-11-26 03:42:05 +00:00
|
|
|
geesh/built-ins/dot.scm \
|
2018-07-17 16:20:06 +01:00
|
|
|
geesh/built-ins/echo.scm \
|
2018-11-26 03:42:05 +00:00
|
|
|
geesh/built-ins/eval.scm \
|
2018-12-04 17:48:15 +00:00
|
|
|
geesh/built-ins/exec.scm \
|
2018-12-04 21:03:38 +00:00
|
|
|
geesh/built-ins/exit.scm \
|
2018-11-21 18:27:50 +00:00
|
|
|
geesh/built-ins/export.scm \
|
2018-10-17 00:39:20 +01:00
|
|
|
geesh/built-ins/false.scm \
|
2018-11-25 06:30:09 +00:00
|
|
|
geesh/built-ins/pwd.scm \
|
2018-10-16 23:15:05 +01:00
|
|
|
geesh/built-ins/read.scm \
|
2018-11-21 18:34:30 +00:00
|
|
|
geesh/built-ins/readonly.scm \
|
2018-12-04 21:03:38 +00:00
|
|
|
geesh/built-ins/return.scm \
|
2018-11-21 19:58:03 +00:00
|
|
|
geesh/built-ins/set.scm \
|
2018-12-04 16:21:19 +00:00
|
|
|
geesh/built-ins/shift.scm \
|
2018-12-04 17:51:41 +00:00
|
|
|
geesh/built-ins/trap.scm \
|
2018-11-21 16:39:06 +00:00
|
|
|
geesh/built-ins/true.scm \
|
2018-12-04 16:25:02 +00:00
|
|
|
geesh/built-ins/umask.scm \
|
2018-11-16 02:05:12 +00:00
|
|
|
geesh/built-ins/unset.scm \
|
2018-11-21 18:34:30 +00:00
|
|
|
geesh/built-ins/utils.scm \
|
2018-07-17 16:20:06 +01:00
|
|
|
geesh/built-ins.scm \
|
2018-07-12 02:51:54 +01:00
|
|
|
geesh/environment.scm \
|
2018-07-17 18:28:46 +01:00
|
|
|
geesh/eval.scm \
|
2017-12-09 23:48:17 +00:00
|
|
|
geesh/lexer.scm \
|
2017-12-16 05:53:20 +00:00
|
|
|
geesh/parser.scm \
|
2018-11-20 20:01:30 +00:00
|
|
|
geesh/pattern.scm \
|
2018-07-12 03:05:15 +01:00
|
|
|
geesh/repl.scm \
|
2018-07-17 03:33:03 +01:00
|
|
|
geesh/shell.scm \
|
2018-07-12 03:05:15 +01:00
|
|
|
geesh/word.scm
|
2017-12-09 17:01:40 +00:00
|
|
|
|
|
|
|
bin_SCRIPTS = \
|
|
|
|
scripts/geesh
|
|
|
|
|
|
|
|
TESTS = \
|
2017-12-09 23:48:17 +00:00
|
|
|
tests/lexer.scm \
|
2017-12-16 05:53:20 +00:00
|
|
|
tests/parser.scm \
|
2018-11-20 20:01:30 +00:00
|
|
|
tests/pattern.scm \
|
2018-07-17 03:33:03 +01:00
|
|
|
tests/shell.scm \
|
2018-07-12 03:05:15 +01:00
|
|
|
tests/word.scm
|
2017-12-09 17:01:40 +00:00
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
$(GOBJECTS) \
|
|
|
|
$(TESTS:tests/%.scm=%.log) \
|
|
|
|
$(TESTS:tests/%.scm=%.trs)
|
2018-11-08 19:53:55 +00:00
|
|
|
|
|
|
|
clean-local:
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) -L -C tests/spec clean
|