Makefile: split GIT_USER_AGENT from GIT-CFLAGS
authorJeff King <peff@peff.net>
Wed, 20 Jun 2012 18:31:51 +0000 (14:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2012 14:57:29 +0000 (07:57 -0700)
commit620c293abdc36f3db18edd61a622eae30f01ce8e
treec43dbc02a81dbfcf01597e152d94c9fc20dc62bd
parent47eb28ec0cdb372f4354800e2e0ec713ad4c1992
Makefile: split GIT_USER_AGENT from GIT-CFLAGS

The default user-agent depends on the GIT_VERSION, which
means that anytime you switch versions, it causes a full
rebuild. Instead, let's split it out into its own file and
restrict the dependency to version.o.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Makefile