summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2d713f)
raw | patch | inline | side by side (parent: f2d713f)
author | Johannes Sixt <j6t@kdbg.org> | |
Thu, 9 Feb 2012 08:22:26 +0000 (09:22 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 9 Feb 2012 19:47:54 +0000 (11:47 -0800) |
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>
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>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index ceb9dfc87d4a716518e856ab6305609af835a41d..4deda38c5052969e6acc886ca60455fb8a464990 100644 (file)
--- a/Makefile
+++ b/Makefile
# 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);