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
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -72,7 +72,7 @@ BUILDSYSTEM = make
|
||||||
endif
|
endif
|
||||||
|
|
||||||
build-file = $(BUILDDIR)/build.$(BUILDSYSTEM)
|
build-file = $(BUILDDIR)/build.$(BUILDSYSTEM)
|
||||||
lua-files = $(shell find * -name '*.lua')
|
lua-files = $(shell find * -name 'build*.lua')
|
||||||
our-lua = $(BUILDDIR)/lua
|
our-lua = $(BUILDDIR)/lua
|
||||||
|
|
||||||
# GNU make sets MAKECMDGOALS to the list of targets from the command
|
# 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 \
|
@$(our-lua) first/ackbuilder.lua \
|
||||||
first/build.lua build.lua \
|
first/build.lua build.lua \
|
||||||
--$(BUILDSYSTEM) \
|
--$(BUILDSYSTEM) \
|
||||||
|
LUA=$(our-lua) \
|
||||||
DEFAULT_PLATFORM=$(DEFAULT_PLATFORM) \
|
DEFAULT_PLATFORM=$(DEFAULT_PLATFORM) \
|
||||||
OBJDIR=$(OBJDIR) \
|
OBJDIR=$(OBJDIR) \
|
||||||
BINDIR=$(BINDIR) \
|
BINDIR=$(BINDIR) \
|
||||||
|
|
Loading…
Add table
Reference in a new issue