mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
* am/guilec (install-data-hook): Remove. (guile_install_go_files): New variable. ($(guile_install_go_files)): New dependency. * libguile/load.c (compiled_is_fresh): Check for ordering of STAT_SOURCE and STAT_COMPILED, not equality. * module/ice-9/boot-9.scm (load): Ditto. * module/system/base/compile.scm (call-with-output-file/atomic): Don't set the timestamp of TEMPLATE.
30 lines
1,015 B
Makefile
30 lines
1,015 B
Makefile
# -*- makefile -*-
|
|
GOBJECTS = $(SOURCES:%.scm=%.go)
|
|
|
|
GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch
|
|
|
|
moddir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)/$(modpath)
|
|
nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
|
|
ccachedir = $(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/ccache/$(modpath)
|
|
nobase_ccache_DATA = $(GOBJECTS)
|
|
EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
|
|
|
|
CLEANFILES = $(GOBJECTS)
|
|
|
|
# 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_ccacheDATA
|
|
$(guile_install_go_files): install-nobase_modDATA
|
|
|
|
AM_V_GUILEC = $(AM_V_GUILEC_$(V))
|
|
AM_V_GUILEC_ = $(AM_V_GUILEC_$(AM_DEFAULT_VERBOSITY))
|
|
AM_V_GUILEC_0 = @echo " GUILEC" $@;
|
|
|
|
SUFFIXES = .scm .go
|
|
.scm.go:
|
|
$(AM_V_GUILEC)GUILE_AUTO_COMPILE=0 \
|
|
$(top_builddir)/meta/uninstalled-env \
|
|
guile-tools compile $(GUILE_WARNINGS) -o "$@" "$<"
|