guile.am 1.01 KB
Newer Older
1 2 3
GOBJECTS1    = $(PSSOURCES:%.scm=%.go)
GOBJECTS2    = $(GOBJECTS1:%.pl=%.go)
GOBJECTS     = $(GOBJECTS2:%.plb=%.go)
4

5
SOURCES     = $(PSSOURCES)
6

7
nobase_mod_DATA    = $(SOURCES) $(NOCOMP_SOURCES)
8
nobase_go_DATA = $(GOBJECTS)
9

10 11 12 13 14 15 16 17 18 19 20
# 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_goDATA
$(guile_install_go_files): install-nobase_modDATA
 
CLEANFILES = $(GOBJECTS)
EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
21 22 23 24
SUFFIXES = .plb .pl .scm .go
.plb.go:
	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) --from=prolog-boot -o "$@" "$<"

25
.scm.go:
26
	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
27 28 29 30 31

.pl.go:
	$(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) --from=prolog -o "$@" "$<"