]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Makefile: document ground rules for target-specific dependencies
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 7 Jul 2012 04:19:09 +0000 (23:19 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2012 15:57:52 +0000 (08:57 -0700)
commit7b63c77eeea7cc4bf3d29793bcb95dcf659e5126
tree759fc900bae09290f938bccd0bd2df2add002566
parent520a6cdce3531867110df012d62d4974376eba1f
Makefile: document ground rules for target-specific dependencies

When a source file makes use of a makefile variable, there should be a
corresponding dependency on a file that changes when that variable
changes to ensure the build output is not left stale when the variable
changes.

Document this, even though we are not following the rule perfectly
yet.  Based on an explanation from Jeff King.

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