From 3d94b2b34b4c35ba7a1f96b7c1edca0c59b51fe4 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 9 Jan 2024 02:28:45 -0300 Subject: [PATCH] Makefile: allow testing with different interpreter values This will allow me to more easily run local tests with my hacked `lua-no-tailcalls` interpreter binary. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d32150d5a..e30d4f009 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +LUA ?= + ifeq ($(OS), Windows_NT) BUSTED = busted.bat --suppress-pending --exclude-tags=unix else @@ -8,8 +10,8 @@ all: selfbuild suite selfbuild: cp tl.lua tl.lua.bak - ./tl gen --check tl.tl && cp tl.lua tl.lua.1 || { cp tl.lua tl.lua.1; cp tl.lua.bak tl.lua; exit 1; } - ./tl gen --check tl.tl && cp tl.lua tl.lua.2 || { cp tl.lua tl.lua.2; cp tl.lua.bak tl.lua; exit 1; } + $(LUA) ./tl gen --check tl.tl && cp tl.lua tl.lua.1 || { cp tl.lua tl.lua.1; cp tl.lua.bak tl.lua; exit 1; } + $(LUA) ./tl gen --check tl.tl && cp tl.lua tl.lua.2 || { cp tl.lua tl.lua.2; cp tl.lua.bak tl.lua; exit 1; } diff tl.lua.1 tl.lua.2 suite: