Re: bsd sed / make vs bsd sed / make
- In reply to: Norman Gray : "Re: bsd sed / make vs bsd sed / make"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Apr 2024 19:28:47 UTC
On Thu, Apr 25, 2024 at 8:53 PM Norman Gray wrote: > 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. Yeah, modification of existing gmakefiles is not an option (too many), and there is a cmake implementation worked on, so I will try simple bmake -> gmake wrapper :-) Thanks everyone :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info