guile.am
1 | # Derived from am/guilec in guile's source code |
2 | # |
3 | # Copyright 2021 Julien Lepiller <julien@lepiller.eu> |
4 | # |
5 | # SPDX-License-Identifier: AGPL-3.0-or-later |
6 | |
7 | moddir=$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION) |
8 | godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache |
9 | |
10 | GOBJECTS = $(SOURCES:%.scm=%.go) |
11 | |
12 | nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) |
13 | nobase_go_DATA = $(GOBJECTS) |
14 | |
15 | # Make sure source files are installed first, so that the mtime of |
16 | # installed compiled files is greater than that of installed source |
17 | # files. See |
18 | # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html> |
19 | # for details. |
20 | guile_install_go_files = install-nobase_goDATA |
21 | $(guile_install_go_files): install-nobase_modDATA |
22 | |
23 | CLEANFILES = $(GOBJECTS) |
24 | EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES) |
25 | GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat |
26 | SUFFIXES = .scm .go |
27 | .scm.go: |
28 | $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILD) compile $(GUILE_WARNINGS) -o "$@" "$<" |
29 |