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 v6 07/16] build: Register '.sld' as an alternative extension to '.scm'. Date: Sat, 2 Dec 2023 20:37:08 -0500 Message-ID: <20231203014115.26985-8-maxim.cournoyer@gmail.com> References: <20231203014115.26985-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="29627"; 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 Sun Dec 03 02:42: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 1r9bVG-0007Qv-VE for guile-devel@m.gmane-mx.org; Sun, 03 Dec 2023 02:42:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9bUG-0001Mk-8H; Sat, 02 Dec 2023 20:41:36 -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 1r9bUF-0001MZ-3r for guile-devel@gnu.org; Sat, 02 Dec 2023 20:41:35 -0500 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r9bUD-0001Xb-N3 for guile-devel@gnu.org; Sat, 02 Dec 2023 20:41:34 -0500 Original-Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-423e95c2d54so19365181cf.3 for ; Sat, 02 Dec 2023 17:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701567692; x=1702172492; 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=O0f9Tx7JAtnX+z794u4s9z40yjBhKDbZpdYGECOvGuG1FSFrTjcXZvv0QWwQns9rv5 WawZx3whweBCM0I0dSbQRA7J0YCpFQFt2VlPfVqoclcujXqUqe+vP6vWMJFpynvxDlVr uNtsXJmUENfD2xlVAKWCfBKOzRGfaVIKRUOmHT+yRI7X9r5xuBi5Z/9SmmoAtDTIwMqw A4DAi4mLZdvC/P1U1/3zlQIx6j+zT8jQds8PtpSKT7kt3pWN+496TYXXfBmyWI1GvwxH P5hhiHHRAJiMZ41wTi2YYUckDfzQVGN9FkpX2XDGFa0lgh09iNT39VJtHK48lSDsYWhh DSMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701567692; x=1702172492; 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=u3BGxUCyOT2wQRiNWFvnqvQ0throi1gxKIQaev0xdGdiDQAx3mC+mx+byqimT2EvWQ 06GrSurBC9dRykyDoHrUTQD81dcOhHuJ8IcA2Z5JEIcCHhQyjx3BVqqNVK6FRlNxIjKg v3AkiLtSFQQ2y6sDfSV6PaK3+vF13WGHFaM9HuU/xOIdwbOZUVOBuJDiUBzeIVhkD5Nw aI4ql+K6uMj7dX5mMsihTwjp7bxhvm8ZSKaUJQESX1SGYLvonVWbSDi7/vf9vMCxLsrj 9uoY13WE2sBpaTemRTIiAflSjD3FBfeDdKyPTDQcap07kJ1aFkp2XnZjx6xtcgeYx2yE 339g== X-Gm-Message-State: AOJu0YyUZzTd6nDMdpCz5ewdngkcIBG5S+oKgD0PdxGJpLal0rRvmuXk L5G0MH0wT3s105BClPtLU0JEGRL/plo= X-Google-Smtp-Source: AGHT+IGGNupvW708ADX5HEAP9yGPQOCz+ggheNO4J6WFfl8lHUlE1n60MEeWVCm6YFAhftsQ7AAj6A== X-Received: by 2002:a05:620a:8218:b0:77e:fba3:a77b with SMTP id ow24-20020a05620a821800b0077efba3a77bmr724670qkn.89.1701567692394; Sat, 02 Dec 2023 17:41:32 -0800 (PST) Original-Received: from localhost.localdomain (dsl-10-141-196.b2b2c.ca. [72.10.141.196]) by smtp.gmail.com with ESMTPSA id t15-20020a05620a450f00b0077dca8ed9a4sm2869664qkp.133.2023.12.02.17.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 17:41:31 -0800 (PST) X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231203014115.26985-1-maxim.cournoyer@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82d.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:22167 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