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 v9 07/18] build: Register '.sld' as an alternative extension to '.scm'. Date: Tue, 12 Dec 2023 23:37:46 -0500 Message-ID: <20231213044217.14093-8-maxim.cournoyer@gmail.com> References: <20231213044217.14093-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="25048"; 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 Dec 13 05:43:40 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 1rDH5u-0006K2-JA for guile-devel@m.gmane-mx.org; Wed, 13 Dec 2023 05:43:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDH4z-0004JR-7Y; Tue, 12 Dec 2023 23:42:41 -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 1rDH4v-0004IQ-Ue for guile-devel@gnu.org; Tue, 12 Dec 2023 23:42:37 -0500 Original-Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rDH4r-00071z-Ot for guile-devel@gnu.org; Tue, 12 Dec 2023 23:42:37 -0500 Original-Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-425a76bb53fso35393711cf.1 for ; Tue, 12 Dec 2023 20:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702442552; x=1703047352; 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=D1Q5H5k4wKVXjI1cCOAsaH0XU64m1Ox0FhC0eCTRuH+E49uIxeZWwouCJjpddmtd9G yNFRIzvaKf3Aaddp4hLeF5Mmr2cAjCmQSC9Pu1OBcm2RoYgg8wECb0KuEW4y2QJA++jD QoSu+JhcPtwmZXTxC4ATUQmklCucwR9+r0YY1aMWe2jxZINBOzCYEz0rWa486mBffDov UFDAv5b55GjkXRO4C8RYvH9YlEdGc7TxFGyoRSsf2riUU184REoFP3mIjbLg9oKe60JE Ze4fvj6HisbXDLu4cjt2e/GVk3VzPl45ue/8hF/Pj8iXyoHKcYQkllJMdaND9AGL+QMC QkTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702442552; x=1703047352; 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=GBL4g8dkHPtF6kAlsJvZMb78W9KlSE1LXzfN3SGjJScK/nT9DNQDC1TGyCGY0HEEpa Ezk7eDYF3Pop6GROXqowWUByVayZD4PO1WVVDbf69dEgiyI+Y5EhTy5MCM9q9wuaQZ7c sgSYRt7x2jDqC6hN3xlNQnyZ41dEmYci23RnP8iR7dLaMgFeZjSzR3cbThIvqcOsNz8a Asw08h+rSRvNnjylwc1WBeYAzh+lB1UAS89Gl2n92fT1LTv5Pj6T0aZiKwu4u5aISwsr 65ef1uP2FpfV84GSn7y/t47mlU2JoyEr2Bhuv8wlS9GltqKBeI8uboBboK5GrWYnWJSV h4hw== X-Gm-Message-State: AOJu0YwRsUvc7HOVbg50KhPjM70Uat7ovf/JZEMfDhRUB3ICEHrj//uu 8DGmg8SR6r1NR1ByM3zJWU/b8G0grR6R+w== X-Google-Smtp-Source: AGHT+IFM5fY9ox4JcGbpXWBd7tDPHLRJ2W4oD1vYsJ2VRXJ5r5t9bre55TIRXcmy7JuWx86RUQhX0Q== X-Received: by 2002:a05:622a:89:b0:425:7990:367 with SMTP id o9-20020a05622a008900b0042579900367mr11982361qtw.20.1702442552507; Tue, 12 Dec 2023 20:42:32 -0800 (PST) Original-Received: from localhost.localdomain (dsl-157-186.b2b2c.ca. [66.158.157.186]) by smtp.gmail.com with ESMTPSA id s7-20020ac87587000000b004181138e0c0sm4621719qtq.31.2023.12.12.20.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:42:32 -0800 (PST) X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231213044217.14093-1-maxim.cournoyer@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x830.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:22234 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