From e85b88d61b8b4756c14b3153bb4065d19dcfb306 Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Mon, 4 Sep 2023 11:18:31 +0200 Subject: [PATCH] Makefile: check that .git is a folder and not a file (happens in submodules) --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 2c7e1544..41a22163 100644 --- a/src/Makefile +++ b/src/Makefile @@ -476,7 +476,7 @@ DASM_DASC= vm_$(DASM_ARCH).dasc GIT= ifeq (,$(HOST_MSYS)) - GIT_RELVER= if exist ..\.git ( git show -s --format=%%ct >luajit_relver.txt ) else ( type ..\.relver >luajit_relver.txt ) + GIT_RELVER= if exist ..\.git\ ( git show -s --format=%%ct >luajit_relver.txt ) else ( type ..\.relver >luajit_relver.txt ) else GIT_RELVER= [ -e ../.git ] && $(GIT) show -s --format=%ct >luajit_relver.txt 2>/dev/null || cat ../.relver >luajit_relver.txt 2>/dev/null || : endif