libretro: Allow setting GIT_VERSION.

This commit is contained in:
orbea 2018-04-03 10:41:26 -07:00
parent 079bc1bf44
commit cdb923c40d
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ CFLAGS ?=
STATIC_LINKING:= 0
TARGET_NAME := picodrive
LIBM := -lm
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