Fixed linux compiler error when Git is not installed
@@ -34,8 +34,10 @@ CO_FLAGS = $(CWARN) $(DBGWARN) $(PIPE) $(EX)
C_FLAGS = $(OPT) $(INCLUDE) $(DEFINES)
CC_FLAGS = $(COPT) $(INCLUDE) $(DEFINES)
+ifneq ($(shell git rev-parse --git-dir),)
GITREVISION = $(shell expr $(shell git rev-list --count HEAD) - 2406)
GITHASH = $(shell git rev-parse --short HEAD)
+endif
SRC := ./src/graysvr/CAccount.cpp \
./src/graysvr/CBase.cpp \
