Initial commit.
[software/guile-aws.git] / Makefile.am
1 GOBJECTS = $(GUILE_SOURCES:%.scm=%.go) $(JSON_SOURCES:.normal.json=.go)
2
3 nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
4 nobase_go_DATA = $(GOBJECTS)
5
6 # Make sure source files are installed first, so that the mtime of
7 # installed compiled files is greater than that of installed source
8 # files. See
9 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
10 # for details.
11 guile_install_go_files = install-nobase_goDATA
12 $(guile_install_go_files): install-nobase_modDATA
13
14 CLEANFILES = $(GOBJECTS)
15 EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
16 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
17 SUFFIXES = .scm .go
18 .scm.go:
19 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
20
21 moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
22 godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache
23
24 GUILE_SOURCES = \
25 aws/base.scm \
26 aws/request.scm \
27 aws/utils/json.scm \
28 language/aws/spec.scm
29
30 JSON_SOURCES = \
31 aws/api/cloudfront-2019-03-26.normal.json \
32 aws/api/ec2-2016-11-15.normal.json \
33 aws/api/s3-2006-03-01.normal.json
34
35 $(JSON_SOURCES:.normal.json=.go): %.go: %.normal.json aws/base.scm language/aws/spec.scm
36 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) \
37 compile $(GUILE_WARNINGS) -O1 --from=aws \
38 -o "$@" "$<"
39
40
41 SOURCES = $(GUILE_SOURCES) $(JSON_SOURCES)