Makefile: split prefix flags from GIT-CFLAGS
authorJeff King <peff@peff.net>
Wed, 20 Jun 2012 18:31:55 +0000 (14:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2012 15:57:52 +0000 (08:57 -0700)
commitbe1dbd0a933749526eb763fd00cd00c0bdf7c7a6
tree1e1fc91d5703f50b073d3d422430c4da6d3d80cd
parent33ddbcb01208f93c20ac4b904ad3d76777144882
Makefile: split prefix flags from GIT-CFLAGS

Most of the build targets do not care about the setting of
$prefix (or its derivative variables), but will be rebuilt
if the prefix changes. For most setups this doesn't matter
(they set prefix once and never change it), but for a setup
which puts each branch or version in its own prefix, this
unnecessarily causes a full rebuild whenever the branc is
changed.

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