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 <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Sixt 2012-02-09 09:22:26 +01:00 committed by Junio C Hamano
parent f2d713fc3e
commit e60ec75948

View File

@ -1775,16 +1775,18 @@ endif
# data gathering # data gathering
PROFILE_DIR := $(CURDIR) PROFILE_DIR := $(CURDIR)
ifeq "$(PROFILE)" "GEN" ifeq ("$(PROFILE)","GEN")
CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1 CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1
EXTLIBS += -lgcov EXTLIBS += -lgcov
export CCACHE_DISABLE=t export CCACHE_DISABLE=t
V=1 V=1
else ifneq "$(PROFILE)" "" else
ifneq ("$(PROFILE)","")
CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1 CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1
export CCACHE_DISABLE=t export CCACHE_DISABLE=t
V=1 V=1
endif endif
endif
# Shell quote (do not use $(call) to accommodate ancient setups); # Shell quote (do not use $(call) to accommodate ancient setups);