# Gash --- Guile As SHell # Copyright © 2019 Timothy Sample # # This file was adapted from the 'am/guilec' file shipped with GNU # Guile version 2.2.4. Unfortunately that file does not contain a # copyright notice. Looking at Guile's Git commit history, it looks # like the notice should read: # # Copyright 2008-2012, 2016 Free Software Foundation, Inc. # # This file is part of Gash. # # Gash is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or (at # your option) any later version. # # Gash is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Gash. If not, see . GOBJECTS = $(SOURCES:%.scm=%.go) GUILE_WARNINGS = \ -Wunbound-variable \ -Wmacro-use-before-definition \ -Warity-mismatch \ -Wformat moddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)/$(modpath) nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) ccachedir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-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 # # for details. guile_install_go_files = install-nobase_ccacheDATA $(guile_install_go_files): install-nobase_modDATA AM_V_GUILEC = $(AM_V_GUILEC_@AM_V@) AM_V_GUILEC_ = $(AM_V_GUILEC_@AM_DEFAULT_V@) AM_V_GUILEC_0 = @echo " GUILEC" $@; SUFFIXES = .scm .go .scm.go: $(AM_V_GUILEC)GUILE_AUTO_COMPILE=0 \ $(top_builddir)/pre-inst-env \ $(GUILD) compile $(GUILE_WARNINGS) \ -o "$@" "$<"