From 16ccaffc3fad36d1fd6436d746f8c688d5f85cc6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 10 Jan 2013 16:13:47 +0100 Subject: [PATCH] checking if git even is available --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d8b1c4..85848e4 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,9 @@ MINGW = $(findstring MINGW32, $(UNAME)) CC ?= clang CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char -CFLAGS += -DGMQCC_GITINFO="\"`git describe`\"" +ifneq ($(shell git describe --always 2>/dev/null),) + CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\"" +endif #turn on tons of warnings if clang is present # but also turn off the STUPID ONES ifeq ($(CC), clang) -- 2.39.2