Skip to content

Commit e60ec75

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f2d713f commit e60ec75

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,16 +1775,18 @@ endif
17751775
# data gathering
17761776
PROFILE_DIR := $(CURDIR)
17771777

1778-
ifeq "$(PROFILE)" "GEN"
1778+
ifeq ("$(PROFILE)","GEN")
17791779
CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1
17801780
EXTLIBS += -lgcov
17811781
export CCACHE_DISABLE=t
17821782
V=1
1783-
else ifneq "$(PROFILE)" ""
1783+
else
1784+
ifneq ("$(PROFILE)","")
17841785
CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1
17851786
export CCACHE_DISABLE=t
17861787
V=1
17871788
endif
1789+
endif
17881790

17891791
# Shell quote (do not use $(call) to accommodate ancient setups);
17901792

0 commit comments

Comments
 (0)