Expose our custom Lua interpreter to the build system so utility scripts can be

written in it.
This commit is contained in:
David Given 2018-06-13 20:56:49 +09:00
parent 6ae38887a7
commit 7f2ca76663

View file

@ -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) \