Re: [hackers] [slstatus] Explicitly list component-objects in the Makefile || Laslo Hunhold
On Sun, May 27, 2018 at 1:55 PM <git_AT_suckless.org> wrote:
> commit 0efd64ffaa04715eff9c834c437562952c4531cd
> Author: Laslo Hunhold <dev_AT_frign.de>
> AuthorDate: Sun May 27 22:40:00 2018 +0200
> Commit: Aaron Marcher <me_AT_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.
Received on Tue May 29 2018 - 16:03:15 CEST
This archive was generated by hypermail 2.3.0
: Tue May 29 2018 - 16:12:25 CEST