Commit 6b2444f4 authored by Gregor Richards's avatar Gregor Richards
Browse files

Use the old library_version if git is unavailable at build time.

parent f1337e45
......@@ -29,8 +29,10 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
endif
TARGET_NAME := 2048
GIT_VERSION := "$(shell git describe --abbrev=7 --dirty --always --tags)"
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
GIT_VERSION := "$(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)"
ifneq ($(GIT_VERSION),"unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
LIBM := -lm
fpic=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment