From: Jonathan Nieder Date: Sun, 14 Aug 2011 20:02:55 GMT Subject: Re: [PATCH resend] Makefile: Use computed header dependencies if the compiler supports it Message-ID: <20110814200255.GC16819@elie.gateway.2wire.net> In-Reply-To: Fredrik Kuivinen wrote: > On Sun, Aug 14, 2011 at 21:00, Jonathan Nieder wrote: >> 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"?