On Sun, May 27, 2018 at 1:55 PM <g...@suckless.org> wrote:

> commit 0efd64ffaa04715eff9c834c437562952c4531cd
> Author:     Laslo Hunhold <d...@frign.de>
> AuthorDate: Sun May 27 22:40:00 2018 +0200
> Commit:     Aaron Marcher <m...@drkhsh.at>
> CommitDate: Sun May 27 22:55:15 2018 +0200

>      Explicitly list component-objects in the Makefile

>      There was a long tinkering process at farbfeld about this, but the sad
>      truth is that it's the only way to make the Makefile truly portable.
>      Listing it just as

>         $(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.

That is not true. The .o already depends on the .c and a target with
prerequisites but no commands just adds to the list of prerequisites for
that target.

Reply via email to