LUA ?= rlwrap luajit \ -e 'pp = require("dump").pp' \ -e 'eval = require "eval"' \ -e 'read = require "read"' \ -e 'type = require "type"' \ -e 'utf8 = require "utf8"' \ -e 'util = require "util"' \ -e 'test = require "test"' .PHONY: luarepl luarepl: $(LUA) -i .PHONY: repl repl: $(LUA) -e 'require("repl").repl("lam> ")' .PHONY: test test: $(LUA) -e 'test.runtests()' .PHONY: check check: luacheck *.lua