Re: [hackers] [slstatus] Explicitly list component-objects in the Makefile || Laslo Hunhold

From: Tobias Tschinkowitz <tobias_AT_he4d.net>
Date: Mon, 28 May 2018 15:54:54 +0200

On Mon, May 28, 2018 at 12:49:13PM +0200, Quentin Rameau wrote:
> > $(COM:=.o): config.mk $(REQ:=.h)
> >
> > omits the dependency on the c-file itself, which incurs that strictly
> > speaking the object file is not depending on the source file, which is
> > nonsense.
>
> Come on...
> This is suckless, read and try understanding the standard.
>
> > You don't see strictly Posix compliant Makefiles around very often and
> > most use nasty GNU-extensions everywhere. It is a good idea to go ahead
> > as a fitting example and show how to write them portably.
>
> Stop sounding like an evangelist, spreading nonsense.
>

After this changes i cannot build on OpenBSD anymore

It fails with:

"Using $< in a non-suffix rule context is a GNUmake idiom (Makefile:63)"

Greetings,
Tobias
Received on Mon May 28 2018 - 15:54:54 CEST

This archive was generated by hypermail 2.3.0 : Mon May 28 2018 - 16:00:26 CEST