[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Sourcing a shell script in a make file
From: |
Greg Chicares |
Subject: |
Re: [lmi] Sourcing a shell script in a make file |
Date: |
Tue, 7 Apr 2020 14:23:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
[Updating this historical documentation, to avoid confusion.]
On 2019-05-24 13:57, Greg Chicares wrote:
> [Paraphrase of a demonstration in git as of commit f93cd2fe1fc7,
> posted here as a handy, searchable reference. The full version
> in git contains 'echo' statements to show what's going on in
> detail, and offers a couple simple tests.]
Those tests were too simple, so a more robust technique was
introduced here:
commit a034d7f2cf61ce3146b7233dbd4b2da0b863a88c
Author: Gregory W. Chicares <address@hidden>
Date: 2020-04-02T21:37:00+00:00
Fix defect exposed 20200402T1125Z: 'make' subtlety
Variable assignments via $(eval include ...) take effect before
recursive expansions on subsequent makefile lines, but not before
immediate expansions and not before other makefiles are included.
See commit 8b8a6608da8 of 20200402T1125Z for a demonstration.
The new technique is closer to the 'make' maintainer's
suggestion here:
https://lists.gnu.org/archive/html/help-make/2006-04/msg00142.html
Also see the voluminous earlier discussion in this thread:
https://lists.nongnu.org/archive/html/lmi/2019-05/threads.html#00051
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [lmi] Sourcing a shell script in a make file,
Greg Chicares <=