guile-mecab/guile.am

guile.am

1
# Guile-Mecab --- GNU Guile bindings for mecab, yet another part of speech
2
# analyzer.
3
#
4
# This file was copied as is from guile-git, and had the following copyright
5
# and license notice.
6
#
7
# Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8
#
9
# This file is part of Guile-Mecab.
10
#
11
# Guile-Mecab is free software; you can redistribute it and/or modify it
12
# under the terms of the GNU General Public License as published by
13
# the Free Software Foundation; either version 3 of the License, or
14
# (at your option) any later version.
15
#
16
# Guile-Mecab is distributed in the hope that it will be useful, but
17
# WITHOUT ANY WARRANTY; without even the implied warranty of
18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19
# General Public License for more details.
20
#
21
# You should have received a copy of the GNU General Public License
22
# along with Guile-Mecab.  If not, see <http://www.gnu.org/licenses/>.
23
24
GOBJECTS = $(SOURCES:%.scm=%.go) $(NODIST_SOURCES:%.scm=%.go)
25
26
nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) $(NODIST_SOURCES)
27
nobase_go_DATA = $(GOBJECTS)
28
29
guile_install_go_files = install-nobase_goDATA
30
$(guile_install_go_files): install-nobase_modDATA
31
32
CLEANFILES = $(GOBJECTS)
33
EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
34
GUILE_WARNINGS =                                          \
35
  -Wunbound-variable -Warity-mismatch -Wshadowed-toplevel \
36
  -Wmacro-use-before-definition                           \
37
  -Wunused-variable                                       \
38
  -Wduplicate-case-datum -Wbad-case-datum                 \
39
  -Wformat
40
41
SUFFIXES = .scm .go
42
.scm.go:
43
	$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
44
45