Closed naksyl closed 1 week ago
The section on Internal Macros in POSIX states that $@
, $%
and $?
"shall be evaluated for both target and inference rules". $<
and $*
are only required to be evaluated for inference rules.
busybox-w32 make
is strictly enforcing the standard. It could relax this behaviour, but it would be as a non-POSIX extension.
This issue is being tracked upstream.
Thanks for the answer, i was not aware of that, so I shall stick to parse $?
inside shell.
make
in busybox-w32 now supports $<
and $*
in target rules as a non-POSIX extension.
It's in the lastest prerelease binaries (PRE-5352 or above).
Support for $<
and $*
in target rules is available in the latest release, FRP-5398.
Test makefile:
Output: