emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speeding up the bootstrap build - a quick hack.


From: Robert Pluim
Subject: Re: Speeding up the bootstrap build - a quick hack.
Date: Thu, 20 Jan 2022 10:25:26 +0100

>>>>> On Wed, 19 Jan 2022 21:32:30 +0000, Alan Mackenzie <acm@muc.de> said:

    Alan> This was surprisingly difficult to solve.  There appears to be no way 
in
    Alan> make to set a variable depending on what the target is.  The make 
manual
    Alan> doesn't say this explicitly, it just depends on vagueness.  After an 
hour
    Alan> of searching for such a feature, it gradually dawns on you that there 
is
    Alan> no such feature, even though one might be expected.  I'm glad the 
Emacs
    Alan> manuals aren't like that.

"Target-specific Variable Values" in the Gnu Make info manual. eg

Makefile:

FOO=bar

default:
        @echo FOO=$(FOO)

foo: FOO=foo
foo:
        @echo FOO=$(FOO)

results:

> make
FOO=bar
> make foo
FOO=foo

Robert
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]