-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
72 lines (55 loc) · 2.23 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# SPDX-FileCopyrightText: 2017-2018 Roel Janssen <[email protected]>
# SPDX-FileCopyrightText: 2018-2021 David Thompson <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
include guile.am
moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
SOURCES = \
laura/config.scm \
laura/main.scm \
laura/utils.scm
extensionsdir = $(prefix)/share/guix/extensions
dist_extensions_DATA = \
guix/extensions/laura.scm
TEST_EXTENSIONS = .scm
SCM_TESTS = \
tests/examples.scm
TESTS = $(SCM_TESTS)
EXTRA_DIST += $(TESTS)
AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0
SCM_LOG_DRIVER = \
$(top_builddir)/pre-inst-env \
$(GUILE) --no-auto-compile -e main \
$(top_srcdir)/build-aux/test-driver.scm
AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
EXTRA_DIST += \
guix/extensions/laura.scm.in \
pre-inst-env.in \
build-aux/test-driver.scm
# Handle substitution of fully-expanded Autoconf variables.
do_subst = $(SED) \
-e 's,[@]GUILE_LOAD_COMPILED_PATH[@],$(GUILE_LOAD_COMPILED_PATH),g' \
-e 's,[@]GUILE_LOAD_PATH[@],$(GUILE_LOAD_PATH),g' \
-e 's,[@]guilemoduledir[@],$(guilemoduledir),g' \
-e 's,[@]guileobjectdir[@],$(guileobjectdir),g' \
-e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' \
-e 's,[@]abs_top_builddir[@],$(abs_top_builddir),g' \
-e 's,[@]localedir[@],$(localedir),g'
guix/extensions/laura.scm: guix/extensions/laura.scm.in Makefile
$(AM_V_at)rm -f $@ $@-t
$(AM_V_at)$(MKDIR_P) "$(@D)"
$(AM_V_GEN)$(do_subst) < "$(srcdir)/[email protected]" > "$@-t"
mv -f "$@-t" "$@"
dist-hook: $(distdir)/ChangeLog
gen-ChangeLog $(distdir)/ChangeLog:
$(AM_V_GEN)if test -d .git; then \
$(top_srcdir)/build-aux/gitlog-to-changelog \
> $(distdir)/cl-t; \
rm -f $(distdir)/ChangeLog; \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
.PHONY: gen-ChangeLog
CLEANFILES += \
guix/extensions/laura.scm \
$(SCM_TESTS:tests/%.scm=%.log)