Re: [PATCH resend] Makefile: Use computed header dependencies if the compiler supports it
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 14, 2011, 20:02 UTC
- Message-ID
- <20110814200255.GC16819@elie.gateway.2wire.net>
- In-Reply-To
- <CALx8hKRBjXr44gM1JA+d=RU80pmruPV56s-G3JvViz87eJ=ajQ@mail.gmail.com>
Fredrik Kuivinen wrote:
> On Sun, Aug 14, 2011 at 21:00, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 5 quoted lines
>> I wonder if we can make do with a faster check, like >> >> $(CC) -c -MF /dev/null -MMD -MP git.c --help >/dev/null 2>&1 >> >> What do you think?
[...]
> Without patch (with COMPUTE_HEADER_DEPENDENCIES=Yes):
The case to compare against is when COMPUTE_HEADER_DEPENDENCIES is not set, I'd think, since that is the status quo. And I was talking about commands like "make clean" that do not care about that feature, not "make all".
[...]
> With patch, but changed to use git.c instead of ++empty.c:
Did you try with "--help"?