Re: Using Guile in a Makefile

John Olsson <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Message-ID <[email protected]>
Thank you for sharing this with me!  It sure looks like it is exactly what I was looking for. :)

> On 3 Jan 2023, at 16:14, Paul Smith <[email protected]> wrote:
> 
> On Tue, 2023-01-03 at 10:25 +0100, John Olsson wrote:
>> What I’m talking about is that if you try using a non-existent
>> function, say like I do in this makefile where fnord is not
>> defined/known by GNU Make
> 
> A value like $(....) is considered to be a variable reference. 
> Variables that are not set expand to the empty string without any
> warning: this is a required feature.
> 
> You can add the --warn-undefined-variables option to your invocation of
> make to have it warn you when an undefined variable is used.  That will
> cause a warning to be generated in your situation.
> 
> Over the last few releases we have been working towards ensuring that
> it's not legal for a make variable name to contain whitespace.  I
> believe that process is complete as of the current release of GNU Make.
> I expect that the next major release will introduce a warning for any
> variable reference that contains whitespace in the name (without
> requiring an extra option).  Once that is in place, any invocation of
> an unknown function will generate that warning.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.