1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

(Makefiles) Fix incorrect check in Git version checking

This commit is contained in:
Hugo Hromic 2020-07-21 13:52:28 +01:00
parent cdc7327e47
commit 10ab4b9118

View File

@ -161,9 +161,9 @@ endif
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
ifneq ($(GIT_VERSION),)
_CACHEDIR = $(if $(OBJDIR), $(OBJDIR), $(CURDIR))
_CACHEDIR = $(if $(OBJDIR),$(OBJDIR),$(CURDIR))
_LAST_GIT_VERSION := $(shell cat "$(_CACHEDIR)"/last-git-version 2>/dev/null)
ifneq ($(GIT_VERSION), $(_LAST_GIT_VERSION))
ifneq ($(GIT_VERSION),$(_LAST_GIT_VERSION))
$(shell \
mkdir -p "$(_CACHEDIR)"; \
echo "$(GIT_VERSION)" > "$(_CACHEDIR)"/last-git-version; \