From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxim Cournoyer Newsgroups: gmane.lisp.guile.devel Subject: [PATCH v5 07/15] build: Register '.sld' as an alternative extension to '.scm'. Date: Wed, 29 Nov 2023 16:59:35 -0500 Message-ID: <20231129220225.6819-8-maxim.cournoyer@gmail.com> References: <20231129220225.6819-1-maxim.cournoyer@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15201"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Maxim Cournoyer To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Nov 29 23:04:28 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r8SfT-0003fm-7V for guile-devel@m.gmane-mx.org; Wed, 29 Nov 2023 23:04:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8Se6-0001CP-IN; Wed, 29 Nov 2023 17:03:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8Sdx-00019q-Qe for guile-devel@gnu.org; Wed, 29 Nov 2023 17:02:54 -0500 Original-Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8Sdv-0004DQ-8V for guile-devel@gnu.org; Wed, 29 Nov 2023 17:02:53 -0500 Original-Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-67a0e1ef63bso1388456d6.3 for ; Wed, 29 Nov 2023 14:02:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701295370; x=1701900170; darn=gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=x3PuvmkSwvLVUhXrZ+7ncqKQxaUjWLVhv/UFXq0oYU4=; b=DmuvZGvzbkcVXadSf3uU7WpGy+rheptrMF5vMWjQCNPXn/TXWRaynVpyr285m4sVY7 c2j+pYR5kop6k0NBRKiBzmsemd6qmgsUelWnlnj+RBg1ODoduKG3pVECw8Y4p3M6yYB7 Ghm+RN51m8qeXKJZYwGdeaoxwCkUJCGpHF3Gto7Vhvvq1nAtZAg961yro1OK10bte4T4 iPUtxz93saYefMZOZ6Df+R5wzPC8vT2f+PuVqZbzNPcc8/RpChhzRVN0LqjP3vNNraXu 8i/pMZjNTjBEVwSq8YGazvTkM21JhbV8Ej93JHgpArkif5uxcebQYXOPCSJkZqk0xX/V T/5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701295370; x=1701900170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x3PuvmkSwvLVUhXrZ+7ncqKQxaUjWLVhv/UFXq0oYU4=; b=DAJF0VX5XFV+an8uoqt3mam5rD11Fvu0fd8Esix8Yp5jtN9CiLBtx0oIs+nwqQ8sd9 OtNtUw6N3QSl2p6SncpHqdO8R0Aa9EDoAJmn0I3A2sV2kjQW81VTvwUGPpwtogOjC6NF g+uxwdPDx8fmpbglKc3Ds3GP/joxfV0HZ+bx0rjfznIfbwDh5fk6eomKptDW8l8IYM0c fOmAja6QZmD5L+SpE1jnAg7WwIqZ2TCe45zxzU/zSQuvV9FS3kJk/qPOLLU87QrL4ZCx JIwmh1pM9OCkrU9gC6qRTRfdxr+QcKbg7GjKqjEupPecQCF+2lgq5i0/1FDIyzySW5Tm Dzvg== X-Gm-Message-State: AOJu0YzzrdqCiw9RrAz5UjtYptG7wzLBAfZ+GdKyOPPyjrwMG11kaxnq vdGAmcVAGE21ilRrfooPvgI45AQm7T0= X-Google-Smtp-Source: AGHT+IHbdxo/SHXyzj6L8YewvLr993o3aqBCcu5gc4yw3VARcv61pnKCp2VCQSGciZexxML9SRGrVA== X-Received: by 2002:a0c:c581:0:b0:67a:3625:c283 with SMTP id a1-20020a0cc581000000b0067a3625c283mr12983202qvj.65.1701295369887; Wed, 29 Nov 2023 14:02:49 -0800 (PST) Original-Received: from localhost.localdomain (dsl-158-174.b2b2c.ca. [66.158.158.174]) by smtp.gmail.com with ESMTPSA id g15-20020ad4510f000000b0067a2a0b44ddsm4644444qvp.44.2023.11.29.14.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 14:02:49 -0800 (PST) X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231129220225.6819-1-maxim.cournoyer@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22152 Archived-At: This is useful when integrating R7RS SRFI libraries into Guile. * am/bootstrap.am (GOBJECTS_): New variable. (GOBJECTS): Compute from GOBJECTS_. : 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