diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-10-19 14:06:16 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2022-11-21 17:15:29 -0300 |
commit | 60a95f00bb1a3185fce4bacb5367201685767444 (patch) | |
tree | e4f7d7ab251be37f354d8626c1c6a331c0b857b8 /etc | |
parent | makefiles: rename H_FILE_LIST and C_FILE_LIST (diff) | |
download | firejail-60a95f00bb1a3185fce4bacb5367201685767444.tar.gz firejail-60a95f00bb1a3185fce4bacb5367201685767444.tar.zst firejail-60a95f00bb1a3185fce4bacb5367201685767444.zip |
makefiles: expand HDRS, SRCS and OBJS immediately
Use immediate expansion of the right-hand side (with `:=`) to set the
variables to the output of the commands rather than to the (text of the)
commands themselves.
This should prevent deferred/lazy evaluation, which is something that
might potentially result in the relevant files being looked up each time
that HDRS and SRCS are evaluated.
Commands used to search and replace:
git grep -Ilz '^SRCS' -- src | xargs -0 -I '{}' \
sh -c "printf '%s\n' \"\$(sed \
-e 's/^HDRS =/HDRS :=/' \
-e 's/^SRCS =/SRCS :=/' \
-e 's/^OBJS =/OBJS :=/' '{}')\" >'{}'"
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions