Re: bsd sed / make vs bsd sed / make

From: Norman Gray <gray_at_nxg.name>
Date: Thu, 25 Apr 2024 18:52:40 UTC
Tomek, hello.

On 25 Apr 2024, at 18:36, Tomek CEDRO wrote:

>  Is there an elegant way to
> use BSD make here with no dramatic code modification?

As Souji says, this is not easy in general.  Resorting to galling gmake from make wouldn't be pretty, but might be necessary.

The core of GNU Make and pmake/bmake (ie, the FreeBSD version) are the same, and it's not too hard to write a basic Makefile which will work with both implementations.  But as soon as you step beyond that core -- ie, as soon as you need a non-basic Makefile -- the two go in different directions, and are almost immediately thoroughly incompatible with each other.

Best wishes,

Norman


-- 
Norman Gray  :  https://nxg.me.uk