From 0a1a39a3ceb6d813005b0b16314fd3f3d008139a Mon Sep 17 00:00:00 2001
From: Ismael Luceno <ismael@iodev.co.uk>
Date: Fri, 18 Mar 2022 17:58:32 +0100
Subject: [PATCH 1/3] Compute VERSION using Make

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e3767161e8ad..eb6e99d6124c 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ libdir ?= $(prefix)/lib
 ifeq "$(wildcard .git)" ".git"
   VERSION := $(shell git describe --tags --always)
 else
-  VERSION := $(shell basename $$PWD | sed -e s,^mujs-,,)
+  VERSION := $(patsubst mujs-%,%,$(notdir $(CURDIR)))
 endif
 
 ifeq ($(shell uname),Darwin)
-- 
2.35.1

