remove warnings, reordering
[software/python-on-guile.git] / modules / guile.am
1 GOBJECTS1 = $(SOURCES:%.scm=%.go)
2 GOBJECTS = $(GOBJECTS1:%.py=%.go)
3
4 nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
5 nobase_go_DATA = $(GOBJECTS)
6
7 # Make sure source files are installed first, so that the mtime of
8 # installed compiled files is greater than that of installed source
9 # files. See
10 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
11 # for details.
12 guile_install_go_files = install-nobase_goDATA
13 $(guile_install_go_files): install-nobase_modDATA
14
15 CLEANFILES = $(GOBJECTS)
16 EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
17 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
18 SUFFIXES = .scm .py .go
19 .scm.go:
20 $(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
21 .py.go:
22 $(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) --from=python -o "$@" "$<"