what is the difference between 'Recursively Expanded Variable Assignment' and 'Simply Expanded Variable Assignment' in Makefile?
1
vote
1
answer
294
views
I am confused about the difference between them.
I have read the GNU documentation, but I am still confused.
> The value you specify is installed verbatim; if it contains references to other variables, these references are expanded whenever this variable is substituted (in the course of expanding some other string). When this happens, it is called recursive expansion.
>The value of a simply expanded variable is scanned once, expanding any references to other variables and functions, when the variable is defined. Once that expansion is complete the value of the variable is never expanded again: when the variable is used the value is copied verbatim as the expansion. If the value contained variable references the result of the expansion will contain their values as of the time this variable was defined.
Can anyone clearly explain their differences?
Thanks a lot.
Asked by lcWhhx
(43 rep)
Apr 12, 2024, 04:55 AM
Last activity: Apr 12, 2024, 07:26 AM
Last activity: Apr 12, 2024, 07:26 AM