[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 07/15] build: Register '.sld' as an alternative extension to '
From: |
Maxim Cournoyer |
Subject: |
[PATCH v5 07/15] build: Register '.sld' as an alternative extension to '.scm'. |
Date: |
Wed, 29 Nov 2023 16:59:35 -0500 |
This is useful when integrating R7RS SRFI libraries into Guile.
* am/bootstrap.am (GOBJECTS_): New variable.
(GOBJECTS): Compute from GOBJECTS_.
<vpath>: Register %.sld to vpath.
(SUFFIXES): Register '.sld' extension.
(.sld.go .scm.go): Add 'sld.go' target to automatic compilation rule.
---
(no changes since v1)
am/bootstrap.am | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/am/bootstrap.am b/am/bootstrap.am
index 39f65f100..68d4b3334 100644
--- a/am/bootstrap.am
+++ b/am/bootstrap.am
@@ -23,7 +23,8 @@ GUILE_OPTIMIZATIONS ?= -O2
GUILE_TARGET ?= $(host)
GUILE_BUILD_TAG ?= BOOTSTRAP($(GUILE_BOOTSTRAP_STAGE))
-GOBJECTS = $(SOURCES:%.scm=%.go) $(ELISP_SOURCES:%.el=%.go)
+GOBJECTS_ = $(SOURCES:%.sld=%.go)
+GOBJECTS = $(GOBJECTS_:%.scm=%.go) $(ELISP_SOURCES:%.el=%.go)
nobase_noinst_DATA = $(GOBJECTS)
CLEANFILES = $(GOBJECTS)
@@ -35,9 +36,10 @@ AM_V_GUILEC_ = $(AM_V_GUILEC_$(AM_DEFAULT_VERBOSITY))
AM_V_GUILEC_0 = @echo " $(GUILE_BUILD_TAG) GUILEC" $@;
vpath %.scm @top_srcdir@/module
+vpath %.sld @top_srcdir@/module
vpath %.el @top_srcdir@/module
-SUFFIXES = .scm .el .go
+SUFFIXES = .scm .sld .el .go
COMPILE = $(AM_V_GUILEC) \
GUILE_BOOTSTRAP_STAGE=$(GUILE_BOOTSTRAP_STAGE) \
@@ -46,7 +48,7 @@ COMPILE = $(AM_V_GUILEC)
\
$(GUILE_WARNINGS) $(GUILE_OPTIMIZATIONS) \
-L "$(abs_top_srcdir)/module"
-.scm.go:
+.sld.go .scm.go:
$(COMPILE) -o "$@" "$<"
.el.go:
--
2.41.0
- [PATCH v5 00/15] Add a few new SRFIs, R7RS libraries, Maxim Cournoyer, 2023/11/29
- [PATCH v5 01/15] ice-9: Fix 'include' when used in compilation contexts., Maxim Cournoyer, 2023/11/29
- [PATCH v5 02/15] Use R7RS 'rename' syntax for exports., Maxim Cournoyer, 2023/11/29
- [PATCH v5 03/15] r7rs-libraries: Add support for 'else' clause in cond-expand., Maxim Cournoyer, 2023/11/29
- [PATCH v5 05/15] (scheme base): Support non-negative SRFI integer names in cond-expand., Maxim Cournoyer, 2023/11/29
- [PATCH v5 04/15] r7rs-libraries: Better support R7RS SRFI library names., Maxim Cournoyer, 2023/11/29
- [PATCH v5 07/15] build: Register '.sld' as an alternative extension to '.scm'.,
Maxim Cournoyer <=
- [PATCH v5 06/15] Share features tested by cond-expand library declarations and expressions., Maxim Cournoyer, 2023/11/29
- [PATCH v5 09/15] module: Add SRFI 128., Maxim Cournoyer, 2023/11/29
- [PATCH v5 08/15] module: Add SRFI 126., Maxim Cournoyer, 2023/11/29
- [PATCH v5 11/15] module: Add (scheme sort)., Maxim Cournoyer, 2023/11/29
- [PATCH v5 10/15] module: Add (scheme comparator)., Maxim Cournoyer, 2023/11/29
- [PATCH v5 12/15] module: Add SRFI 125., Maxim Cournoyer, 2023/11/29
- [PATCH v5 13/15] module: Add SRFI 151., Maxim Cournoyer, 2023/11/29
- [PATCH v5 14/15] module: Add SRFI 160., Maxim Cournoyer, 2023/11/29
- [PATCH v5 15/15] module: Add SRFI 178., Maxim Cournoyer, 2023/11/29