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>
Johannes Sixt committed
Feb 9, 2012 at 09:22 UTC
e60ec75948f197b82f867e31b74bb89323e6581f
1 file changed
+4
-2
Makefile
+4
-2
@@ -1775,16 +1775,18 @@ endif
1775
# data gathering
1776
PROFILE_DIR := $(CURDIR)
1777
1778
-ifeq "$(PROFILE)" "GEN"
1778
+ifeq ("$(PROFILE)","GEN")
1779
CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1
1780
EXTLIBS += -lgcov
1781
export CCACHE_DISABLE=t
1782
V=1
1783
-else ifneq "$(PROFILE)" ""
1783
+else
1784
+ifneq ("$(PROFILE)","")
1785
CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1
1786
export CCACHE_DISABLE=t
1787
V=1
1788
endif
1789
+endif
1790
1791
# Shell quote (do not use $(call) to accommodate ancient setups);
1792