Skip to content

Commit

Permalink
Makefile: fix syntax for older make
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed Feb 9, 2012
1 parent f2d713f commit e60ec75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e60ec75

Please sign in to comment.