On Mon, 2024-05-06 at 23:27 +0800, Kang-Che Sung wrote:
> So why is `$<` even suggested here in the example when it's
> unportable?

It's not the goal, or desire, of the GNU Make manual to use only
portable constructs in its examples.  The GNU Make manual exists to
document using GNU Make and all its examples should work correctly with
GNU Make.

In some places in the GNU Make manual we do point out specific things
which may be non-portable, but that's just an informational courtesy
for the reader.  Anyone who wants to actually write portable makefiles
and not use any non-portable features, would be better off following a
different document such as the POSIX specification for make, than using
the GNU Make manual.

Cheers!

-- 
Paul D. Smith <[email protected]>            Find some GNU Make tips at:
https://www.gnu.org                       http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad
Scientist




Reply via email to