MESSAGE
DATE | 2021-01-25 |
FROM | Paul Eggert
|
SUBJECT | Re: [Hangout - NYLXS] Future plans for Autotools
|
From hangout-bounces-at-nylxs.com Mon Jan 25 19:27:12 2021 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id A4DE9164062; Mon, 25 Jan 2021 19:27:11 -0500 (EST) X-Original-To: hangout-at-www2.mrbrklyn.com Delivered-To: hangout-at-www2.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id 40D4E16405A; Mon, 25 Jan 2021 19:27:07 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Mon, 25 Jan 2021 19:27:07 -0500 Resent-Message-ID: <20210126002707.GA8613-at-www2.mrbrklyn.com> Resent-To: hangout-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mrbrklyn.com (Postfix) with ESMTP id B5F2E164057 for ; Mon, 25 Jan 2021 18:16:28 -0500 (EST) Received: from localhost ([::1]:33540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4B5v-0004u0-Nt for ruben-at-mrbrklyn.com; Mon, 25 Jan 2021 18:16:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4B5P-0004tt-0E for autoconf-at-gnu.org; Mon, 25 Jan 2021 18:15:55 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4B5M-0007jK-Jm; Mon, 25 Jan 2021 18:15:54 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 22A52160017; Mon, 25 Jan 2021 15:15:49 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 2dRndwbD7F-V; Mon, 25 Jan 2021 15:15:48 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6B11D1600F3; Mon, 25 Jan 2021 15:15:48 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cW8mT1GZmoPr; Mon, 25 Jan 2021 15:15:48 -0800 (PST) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 44246160017; Mon, 25 Jan 2021 15:15:48 -0800 (PST) To: Gavin Smith References: <87zh12osjk.fsf-at-tromey.com> <87eei97w7a.fsf-at-tromey.com> <25f02fe5254319a29cde8215893450fc0e0850f7.camel-at-gnu.org> <6f2198b7-70e4-91de-b4ee-aa8ec7eef912-at-cs.ucla.edu> <20210125225901.GA22668-at-mintstar> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <408c6984-b859-2d29-fc8f-e19fd1fcab7d-at-cs.ucla.edu> Date: Mon, 25 Jan 2021 15:15:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210125225901.GA22668-at-mintstar> Content-Language: en-US Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert-at-cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: autoconf-at-gnu.org X-Mailman-Version: 2.1.23 Precedence: list Cc: Autoconf Subject: Re: [Hangout - NYLXS] Future plans for Autotools X-BeenThere: hangout-at-nylxs.com List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
On 1/25/21 2:59 PM, Gavin Smith wrote: > Does this > work or does GNU make have other ways of doing this? (It would be > better if it could be done without communicating via files.) Is there > any way to set a Makefile variable from within a rule and then depend upon > that variable being set in other rules?
GNU Make supports variables defined via ::=, and an earlier section of a GNU makefile could compute CC and assign to it that way. This would handle the simple case you gave. Unfortunately there are other cases that would require intermediate files with current GNU Make. Still, the overhead in using files would be worth it (at least for me) if we could use make -j.
The ::= feature was added to POSIX ten years ago or so, so it could even be used in Makefiles intended to be portable to other new-enough POSIX-compatible platforms. It wouldn't work on older platforms, though. _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
|
|