Expose our custom Lua interpreter to the build system so utility scripts can be
written in it.
This commit is contained in:
parent
6ae38887a7
commit
7f2ca76663
3
Makefile
3
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) \
|
||||
|
|
Loading…
Reference in a new issue