diff options
| author | rillig <rillig@NetBSD.org> | 2022-05-23 22:33:56 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-05-23 22:33:56 +0000 |
| commit | 7682862b6129040a499413a2b4117276c4ed5856 (patch) | |
| tree | a88fcf35410ffa30cf7d5ea3a651c31a1aeb5e52 /sys/dev/microcode/tools/array2bin.c | |
| parent | ebcad49d98236f1af79ff8c0da6cb6f79532a0f3 (diff) | |
tests/make: document and demonstrate .for i containing .if empty(i)
PR bin/43821 describes the inconsistency that in a '.for i' loop, the
condition '.if ${i:M*.c}' works since 2009 while the seemingly
equivalent condition '.if !empty(i:M*.c)' does not access the variable
'i' from the .for loop but instead the global 'i'.
Resolving this situation in a backwards-compatible and non-surprising
way is hard, as make has grown several features during the last 20 years
that interact in various edge cases. For now, document the most obvious
pitfalls.
Diffstat (limited to 'sys/dev/microcode/tools/array2bin.c')
0 files changed, 0 insertions, 0 deletions
