guile.am
1 | moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION) |
2 | godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache |
3 | |
4 | GOBJECTS = $(SOURCES:%.scm=%.go) |
5 | |
6 | nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) |
7 | nobase_go_DATA = $(GOBJECTS) |
8 | |
9 | # Make sure source files are installed first, so that the mtime of |
10 | # installed compiled files is greater than that of installed source |
11 | # files. See |
12 | # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html> |
13 | # for details. |
14 | guile_install_go_files = install-nobase_goDATA |
15 | $(guile_install_go_files): install-nobase_modDATA |
16 | |
17 | CLEANFILES = $(GOBJECTS) |
18 | EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES) |
19 | GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat |
20 | SUFFIXES = .scm .go |
21 | .scm.go: |
22 | $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILD) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<" |
23 |