Makefile: Use computed header dependencies if the compiler supports it
commit111ee18c31f9bac9436426399355facc79238566
authorFredrik Kuivinen <frekui@gmail.com>
Thu, 18 Aug 2011 18:34:39 +0000 (18 20:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Aug 2011 20:54:58 +0000 (18 13:54 -0700)
treeeb27c60f04c22ead24fabcdb762a8876be101bf1
parentf85a051d13884c5a1059edb6ef7f2a6f8c55f0e9
Makefile: Use computed header dependencies if the compiler supports it

Previously you had to manually define COMPUTE_HEADER_DEPENDENCIES to
enable this feature. It seemed a bit sad that such a useful feature
had to be enabled manually.

To avoid the small overhead we don't do the auto-detection if
COMPUTE_HEADER_DEPENDENCIES is already set.

Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile