From 7f2ca76663d708b4b259b938725d2786bc78b85b Mon Sep 17 00:00:00 2001 From: David Given Date: Wed, 13 Jun 2018 20:56:49 +0900 Subject: [PATCH] Expose our custom Lua interpreter to the build system so utility scripts can be written in it. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3d2f18ae4..d3057fe76 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ BUILDSYSTEM = make endif build-file = $(BUILDDIR)/build.$(BUILDSYSTEM) -lua-files = $(shell find * -name '*.lua') +lua-files = $(shell find * -name 'build*.lua') our-lua = $(BUILDDIR)/lua # GNU make sets MAKECMDGOALS to the list of targets from the command @@ -109,6 +109,7 @@ $(build-file): first/ackbuilder.lua Makefile $(lua-files) $(our-lua) @$(our-lua) first/ackbuilder.lua \ first/build.lua build.lua \ --$(BUILDSYSTEM) \ + LUA=$(our-lua) \ DEFAULT_PLATFORM=$(DEFAULT_PLATFORM) \ OBJDIR=$(OBJDIR) \ BINDIR=$(BINDIR) \ -- 2.34.1