diff options
Diffstat (limited to 'config/essentials/vis/Makefile')
-rw-r--r-- | config/essentials/vis/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/config/essentials/vis/Makefile b/config/essentials/vis/Makefile new file mode 100644 index 0000000..5f41043 --- /dev/null +++ b/config/essentials/vis/Makefile @@ -0,0 +1,16 @@ +.PHONY: check format check-luacheck check-format + +LUA_FILES := $(shell find -name "*.lua") + +check: check-luacheck + +all: check check-format + +check-luacheck: + luacheck --globals=vis -- $(LUA_FILES) + +check-format: + set -e; for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done + +format: + lua-format -i $(LUA_FILES) |