diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -4,19 +4,16 @@ LUA_FILES := $(shell find -name "*.lua" -not -path "./json.lua") TEST_FILES := $(shell find -name "*_test.lua") -# bash's process substitution is used for check-format -SHELL := /bin/bash - check: check-luacheck check-format check-luacheck: luacheck --globals=vis -- $(LUA_FILES) check-format: - for lf in $(LUA_FILES); do diff $$lf <(lua-format $$lf) >/dev/null; done + for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done format: lua-format -i $(LUA_FILES) test: - for tf in $(TEST_FILES); do $$tf; done + for tf in $(TEST_FILES); do "$$tf"; done |
