Commit 39d0b102 authored by orbea's avatar orbea
Browse files

Allow setting GIT_VERSION

parent 04df835b
......@@ -29,7 +29,7 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
endif
TARGET_NAME := 2048
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
......
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