From: Ævar Arnfjörð Bjarmason Date: Sun, 12 Sep 2010 22:37:45 GMT Subject: [PATCH] Makefile: add CC to TRACK_CFLAGS Message-ID: <1284331065-3394-1-git-send-email-avarab@gmail.com> Change the git make process so that everything's rebuilt if the CC is changed. Before we wouldn't rebuilt if e.g. the CC variable was changed from gcc to clang. Signed-off-by: Ævar Arnfjörð Bjarmason --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index c27e8bc..c46893a 100644 --- a/Makefile +++ b/Makefile @@ -1969,7 +1969,7 @@ cscope: $(FIND) . -name '*.[hcS]' -print | xargs cscope -b ### Detect prefix changes -TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):\ +TRACK_CFLAGS = $(CC):$(subst ','\'',$(ALL_CFLAGS)):\ $(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ) GIT-CFLAGS: FORCE -- 1.7.2.3.313.gcd15