Commit a9184868 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Compile the guile modules

parent 5249f02c
......@@ -18,10 +18,10 @@ abs_top_srcdir="@abs_top_srcdir@"
abs_top_builddir="@abs_top_builddir@"
export TAROT_HEADER_ARFF="@abs_top_srcdir@/src/features/tarot-header.arff"
export PATH="$abs_top_builddir/src/tarot-app:$abs_top_srcdir/model:$PATH"
export LD_LIBRARY_PATH="$abs_top_builddir/src/.libs:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$abs_top_builddir/src/libtarot/.libs:$abs_top_builddir/src/libtarot/guile/.libs:$LD_LIBRARY_PATH"
export GUILE_AUTO_COMPILE=1
export GUILE_LOAD_PATH="$abs_top_srcdir/src/scm:$abs_top_builddir/src/scm:$GUILE_LOAD_PATH"
export GUILE_COMPILED_LOAD_PATH="$abs_top_builddir/src/scm:$GUILE_COMPILED_LOAD_PATH"
export GUILE_LOAD_PATH="$abs_top_srcdir/src/libtarot/guile:$abs_top_builddir/src/libtarot/guile:$GUILE_LOAD_PATH"
export GUILE_COMPILED_LOAD_PATH="$abs_top_builddir/src/libtarot/guile:$GUILE_COMPILED_LOAD_PATH"
export LANG=C
exec "$@"
......
......@@ -30,9 +30,39 @@ EXTRA_DIST += %reldir%/test_guile.c %reldir%/tarot/config.scm.in
> %reldir%/tarot/config.scm-t
@mv %reldir%/tarot/config.scm-t %reldir%/tarot/config.scm
CLEANFILES += %reldir%/tarot/config.scm
CLEANFILES += %reldir%/tarot/config.scm %reldir%/tarot/config.go
moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
dist_mod_DATA =
go_DATA =
dist_tarotmod_DATA =
tarotmod_DATA =
tarotgo_DATA =
# 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-goDATA
$(guile_install_go_files): install-dist_modDATA
guile_install_tarotgo_files = install-tarotgoDATA
$(guile_install_tarotgo_files): install-dist_tarotmodDATA install-tarotmodDATA
CLEANFILES = $(GOBJECTS)
GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
SUFFIXES += .scm .go
.scm.go:
$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILD) compile $(GUILE_WARNINGS) -o "$@" "$<"
if HAVE_GUILE
dist_tarotmod_DATA +=
tarotmod_DATA += %reldir%/tarot/config.scm
tarotgo_DATA += %reldir%/tarot/config.go
dist_mod_DATA += %reldir%/tarot.scm
go_DATA += %reldir%/tarot.go
AM_CFLAGS += $(GUILE_CFLAGS)
AM_LIBS += $(GUILE_LIBS)
lib_LTLIBRARIES += %reldir%/libtarot-guile.la
......@@ -50,4 +80,5 @@ check_PROGRAMS += %reldir%/test-guile
%canon_reldir%_test_guile_LDADD = \
src/libtarot/libtarot.la %reldir%/libtarot-guile.la $(AM_LIBS)
TESTS += %reldir%/test-guile
%reldir%/tarot.go: %reldir%/tarot/config.scm
endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment