| 1 | GOBJECTS = $(SOURCES:%.scm=%.go) |
| 2 | |
| 3 | nobase_mod_DATA = $(SOURCES) $(NOCOMP_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 | CLEANFILES = $(GOBJECTS) |
| 15 | EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES) |
| 16 | GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat |
| 17 | SUFFIXES = .scm .go |
| 18 | .scm.go: |
| 19 | $(AM_V_GEN)$(top_builddir)/env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<" |