summary refs log tree commit diff
path: root/parse.c
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <roberto.vargas@midokura.com>2022-06-29 09:50:53 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-07-01 13:17:09 +0200
commit9b4bb8d2243b3af477a13fc61e9b7c0406a6bc33 (patch)
treef84dcca6f9d96126bf6d264cf60c499a4ded2bd1 /parse.c
parent790aedb8fef1164bcfe262b566fc58dd665edf9c (diff)
downloadroux-9b4bb8d2243b3af477a13fc61e9b7c0406a6bc33.tar.gz
Makefile: Avoid double macro expansion in targets
POSIX specification stays:

        string1 = [string2]
        ...
        Macro expansions in string1 of macro definition lines shall
        be evaluated when read. Macro expansions in string2 of macro
        definition lines shall be performed when the macro identified
        by string1 is expanded in a rule or command.

It means that recursive macro expansion is not guaranteed to work in
a portable Make. Also, as make is a declarative language makes more
sense to declare your targets as a primary concern instead of
derivating them from a informational macro like SRC that is only
used in a rule command.
Diffstat (limited to 'parse.c')
0 files changed, 0 insertions, 0 deletions