From: Johannes Sixt Date: Thu, 9 Feb 2012 08:22:26 +0000 (+0100) Subject: Makefile: fix syntax for older make X-Git-Tag: v1.7.9.2~15^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e60ec75948f197b82f867e31b74bb89323e6581f;p=git.git Makefile: fix syntax for older make It is necessary to write the else branch as a nested conditional. Also, write the conditions with parentheses because we use them throughout the Makefile. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index ceb9dfc87..4deda38c5 100644 --- a/Makefile +++ b/Makefile @@ -1775,16 +1775,18 @@ endif # data gathering PROFILE_DIR := $(CURDIR) -ifeq "$(PROFILE)" "GEN" +ifeq ("$(PROFILE)","GEN") CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1 EXTLIBS += -lgcov export CCACHE_DISABLE=t V=1 -else ifneq "$(PROFILE)" "" +else +ifneq ("$(PROFILE)","") CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1 export CCACHE_DISABLE=t V=1 endif +endif # Shell quote (do not use $(call) to accommodate ancient setups);