Re: [hackers] [farbfeld] Makefile: target should depend on its object

From: Laslo Hunhold <dev_AT_frign.de>
Date: Thu, 30 Mar 2017 16:01:25 +0200

On Thu, 30 Mar 2017 15:55:25 +0200
Quentin Rameau <quinq_AT_fifth.space> wrote:

Hey Quentin,

> Well, it's not “wrong” per se, but indeed it makes binaries depend on
> all objects.
> That's something you can't work around with the way you seem to
> want to write your Makefile.
>
> The more correct solution would be to have a rule for each binary.
> I'll send such patch here.

you don't need that. Test it out yourself:

        make png2ff
        touch png2ff.o
        make png2ff

It all works fine. :)

Cheers

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Thu Mar 30 2017 - 16:01:25 CEST

This archive was generated by hypermail 2.3.0 : Thu Mar 30 2017 - 16:12:15 CEST