Code

Teach Makefile to check header dependencies
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 26 Jan 2010 15:57:15 +0000 (09:57 -0600)
committerJonathan Nieder <jrnieder@gmail.com>
Wed, 27 Jan 2010 08:47:43 +0000 (02:47 -0600)
commitf2fabbf76e458010852ac7ced30594c8ab96b9fd
tree3d6694c10c81386ba237bf902dd55cf28628fc1d
parent1b22c99c14b30f0add6f108a5883f003a2d81e01
Teach Makefile to check header dependencies

Add a target to use the gcc-generated makefile snippets for
dependencies on header files to check the hard-coded dependencies.

With this patch applied, if any dependencies are missing, then

make clean
make COMPUTE_HEADER_DEPENDENCIES=YesPlease
make CHECK_HEADER_DEPENDENCIES=YesPlease

will produce an error message like the following:

CHECK fast-import.o
missing dependencies: exec_cmd.h
make: *** [fast-import.o] Error 1

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Makefile