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 v8 07/16] build: Register '.sld' as an alternative extension to '.scm'. Date: Wed, 6 Dec 2023 18:15:03 -0500 Message-ID: <20231206231512.6505-8-maxim.cournoyer@gmail.com> References: <20231206231512.6505-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="38255"; 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 Thu Dec 07 00:17:03 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 1rB18Z-0009i0-SO for guile-devel@m.gmane-mx.org; Thu, 07 Dec 2023 00:17:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rB17Q-0001v8-OT; Wed, 06 Dec 2023 18:15:52 -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 1rB17C-0001nM-Ns for guile-devel@gnu.org; Wed, 06 Dec 2023 18:15:45 -0500 Original-Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rB175-00018G-SG for guile-devel@gnu.org; Wed, 06 Dec 2023 18:15:37 -0500 Original-Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-67aa3b62c35so1932266d6.0 for ; Wed, 06 Dec 2023 15:15:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701904530; x=1702509330; 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=EYnRxYbA3d1XtyJ0oRhUR7mN2O43Cv7qtmOfGXWlIeuWAm7SC+VYcVl+LOzRpU6P/d Rzp/fUNdAOfp2mGJjI6OEIjWqYnEUREgTTCTEMAFZRTvIq7gu9n+jhbvBMi7yyioJY0s U7roVI8LpxHrQ4hOjWJmLJFLJnsrVtoBlhap01Vo9c/bkQm4SQ6cghJO36CaPSUoLLwF aXkNnO2NnR/ZIC6OXSsxCnV5kIZzjQLdFUoPynpsU0OZqzswsAaa3cJQvv6G60o3VC2m EMaKVtIDk+J7FYG6SS4nlPGqf0MfrsBOzU87W7mkEVABWysJMW9ZsEUpA8N3er5yPAP1 FrHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701904530; x=1702509330; 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=SOT4vcRfYBUsghLjkt88Jtmwr4BBShvcDNEkPMEHyNpBOiawDWR+6wa/vnoHwsGj4Y XrTbPDVyUxviHdkE2lsXSZZQDwBNUeVhujYFBjtguRQiPG4F8sU/Cehun8XkCgL0W8Ly OlOjHfg/98y6f8KVO+zvpQ3pQEDM/TbdG5B4B2HjjU4+KNwayKkaIpZcNdqyyvj2VBxn NKP6E7ZX0kIF9Q/dR2MLTD/nCBrPSFull03kUYaAgjIpXspcqdSFZD8zCcS3NTl/5uD/ ROyD6pmHpM8PxUaN4c0sZa3xRDEoMI/5ZZI/Gh4l5l/eXduBzaZENWbWSqPPH7DWaGyt 8c9g== X-Gm-Message-State: AOJu0YxNn7VV9GfaLxhHfNJvBEsZ6pT0vuoHc9wLkT8YwfENUoj6ZRqj 0rm6p0JXhSCFuDL2HpMlbIw2YTD0yms= X-Google-Smtp-Source: AGHT+IHfADI+xgPAoHlF1vDJXLPEe7dGQejJqVPkqrj+NMwa7P/Vp7Susxr8hsIKV1oQtUjXzpZmGA== X-Received: by 2002:ad4:4f52:0:b0:67a:b6a3:834e with SMTP id eu18-20020ad44f52000000b0067ab6a3834emr1499758qvb.127.1701904530260; Wed, 06 Dec 2023 15:15:30 -0800 (PST) Original-Received: from localhost.localdomain (dsl-10-130-68.b2b2c.ca. [72.10.130.68]) by smtp.gmail.com with ESMTPSA id re18-20020a05620a8e1200b0077d8ad77069sm3400qkn.26.2023.12.06.15.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 15:15:29 -0800 (PST) X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231206231512.6505-1-maxim.cournoyer@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::f35; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf35.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:22211 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