forked from Z572/guile-bytestructure-class
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
43 lines (33 loc) · 1.4 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
GOBJECTS = $(SOURCES:%.scm=%.go) $(NODIST_SOURCES:%.scm=%.go)
nobase_mod_DATA = $(SOURCES) $(NODIST_SOURCES)
nobase_go_DATA = $(GOBJECTS)
GUILE_WARNINGS = \
-Wunbound-variable -Warity-mismatch -Wshadowed-toplevel \
-Wmacro-use-before-definition \
-Wunused-variable \
-Wduplicate-case-datum -Wbad-case-datum \
-Wformat
SUFFIXES = .scm .go .x
.scm.go:
$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
SOURCES =bytestructure-class.scm
EXTRA_DIST= $(SOURCES) $(TESTS) build-aux/test-driver.scm
TESTS = tests/bytestructure-class.scm
TEST_EXTENSIONS = .scm
SCM_LOG_DRIVER = \
$(top_builddir)/pre-inst-env \
$(GUILE) --no-auto-compile -e main \
$(top_srcdir)/build-aux/test-driver.scm
# Tell 'build-aux/test-driver.scm' to display only source file names,
# not indivdual test names.
AM_SCM_LOG_DRIVER_FLAGS = --brief=no
AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
CLEANFILES = \
$(GOBJECTS) \
$(TESTS:tests/%.scm=%.log)
clean-go:
-$(RM) $(GOBJECTS)
.PHONY: clean-go