Makefile: rebuild git.o on version change, clean up git$X flags
commit54dadbdb29668fbd51effefd0a0c65d915f5422b
authorMatt McCutchen <hashproduct@gmail.com>
Tue, 10 Jul 2007 01:30:39 +0000 (9 21:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jul 2007 06:39:59 +0000 (9 23:39 -0700)
tree9226670da09c548cc5a8c5344a87020a83c0eec4
parent52aaf649cb70134090c3e3a762bed730d5451c17
Makefile: rebuild git.o on version change, clean up git$X flags

Commit 334d28ae factored out git.o as an intermediate stage between
git.c and git$X.  However:

- It left some no-longer-relevant flags in the rule for git$X.

- It failed to replace git$X with git.o in the list of files that
  record GIT_VERSION.  This broke incorporation of a changed
  GIT_VERSION into git$X because, when GIT_VERSION changes, git.o isn't
  remade and git$X is relinked from the git.o that still contains the
  old GIT_VERSION.

This patch removes the irrelevant flags and fixes incorporation of a
changed GIT_VERSION into git$X.

Signed-off-by: Matt McCutchen <hashproduct@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile