[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why don't more makefiles use rules like this: %.d %.o: %.c
From: |
Philip Guenther |
Subject: |
Re: Why don't more makefiles use rules like this: %.d %.o: %.c |
Date: |
Wed, 11 Nov 2009 18:38:45 -0800 |
On Wed, Nov 11, 2009 at 3:25 PM, John Fisher <address@hidden> wrote:
...
> My style uses a pattern rule like this
>
> %.d %.o: %.c
>
> and the -MMD switch to the GNU C compiler to create dependencies and object
> files at the same time.
The latter (-MMD) is a good choice, yes.
The former (using a multiple target pattern rule that has %.d as a
target) is pointless or even harmful in my experience. What are your
reasons for doing that?
Philip Guenther