diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2020-10-29 19:10:36 +0000 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2020-10-29 19:10:36 +0000 |
| commit | 088d53723ac71967a9b8a1184329903753bc7ce0 (patch) | |
| tree | 1bb6c6a10c380a36bb2a156eb6aa5b08c1c027b3 /Makefile | |
| parent | c1db15d8d29ee900725d235016365f68d9d29721 (diff) | |
feature(CI): Test library against Lua 5.4 on Ubuntu 20.10
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,3 +1,5 @@ +LUA ?= lua + FNLSOURCES = core.fnl core_test.fnl macros_test.fnl LUASOURCES = $(FNLSOURCES:.fnl=.lua) @@ -8,14 +10,14 @@ all: $(LUASOURCES) ${LUASOURCES}: $(FNLSOURCES) %.lua: %.fnl - fennel --compile $< > $@ + fennel --lua $(LUA) --compile $< > $@ clean: rm -f *.lua luacov* test: - @fennel core_test.fnl - @fennel macros_test.fnl + @fennel --lua $(LUA) core_test.fnl + @fennel --lua $(LUA) macros_test.fnl luacov: | clean all luacov-stats luacov @@ -28,7 +30,7 @@ luacov-console: | luacov @mv macros_test.lua.tmp macros_test.lua luacov-stats: core_test.lua macros_test.lua - @lua -lluarocks.loader -lluacov $< + @$(LUA) -lluarocks.loader -lluacov $< help: @echo "make -- run tests and create lua library" >&2 |