1 # Copyright (C) 2020 Ahmet Artu Yildirim
3 # orca is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU Lesser General Public License as
5 # published by the Free Software Foundation, either version 3 of
6 # the License, or (at your option) any later version.
8 # orca is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public License
14 # along with orca. If not, see <https://www.gnu.org/licenses/>.
16 moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
17 godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
19 GOBJECTS = $(SOURCES:%.scm=%.go)
21 nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
22 nobase_go_DATA = $(GOBJECTS)
24 guile_install_go_files = install-nobase_goDATA
25 $(guile_install_go_files): install-nobase_modDATA
27 CLEANFILES = $(GOBJECTS)
28 EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
29 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
32 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILD) compile $(GUILE_WARNINGS) -o "$@" "$<"