[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Future plans for Autotools
From: |
Gavin Smith |
Subject: |
Re: Future plans for Autotools |
Date: |
Sun, 31 Jan 2021 22:32:31 +0000 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Sun, Jan 31, 2021 at 10:14:11PM +0000, Gavin Smith wrote:
> Another issue is how to record the results of tests from a a Makefile.
> With autoconf, autoconf variables are recorded with AC_CONFIG_FILES
> and AC_CONFIG_HEADERS. Presumably the same would have to be done,
> substituting in an output file with the values of these variables.
> However, there can be many hundreds of them (just look at a Makefile.in
> file). As far as I can tell, there isn't an easy way to export
> hundreds of Makefile variables to a process. Is there some feature or
> trick I'm missing?
I was mislead by the Make manual talking about communicating with
a sub-make: the .EXPORT_ALL_VARIABLES target appears to export
for any rule (although I didn't get the $(export) directive to work for
this). This could be used by a helper script to do substitution.
The "finish-configure" target in the following outputs "1 2 3":
.EXPORT_ALL_VARIABLES:
set-A:
$(eval A := $(shell echo 1))
set-B:
$(eval B := $(shell echo 2))
set-C:
$(eval C := $(shell echo 3))
finish-configure: set-A set-B set-C
echo $$A $$B $$C
- Re: Future plans for Autotools, (continued)
- Re: Future plans for Autotools, Bob Friesenhahn, 2021/01/25
- Re: Future plans for Autotools, David A. Wheeler, 2021/01/25
- Re: Future plans for Autotools, Paul Eggert, 2021/01/25
- Re: Future plans for Autotools, Bob Friesenhahn, 2021/01/25
- Re: Future plans for Autotools, Gavin Smith, 2021/01/25
- Re: Future plans for Autotools, Gavin Smith, 2021/01/25
- Re: Future plans for Autotools, Paul Eggert, 2021/01/25
- Re: Future plans for Autotools, Gavin Smith, 2021/01/31
- Re: Future plans for Autotools,
Gavin Smith <=
Re: Future plans for Autotools, Nick Bowler, 2021/01/22
Re: Future plans for Autotools, Richard Purdie, 2021/01/26
Re: Future plans for Autotools, Karl Berry, 2021/01/27