aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c43eeda..0fcc468 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,6 @@
.PHONY: check format check-luacheck check-format
-LUA_FILES = $(wildcard *.lua)
-
-# bash's process substitution is used for check-format
-SHELL := /bin/bash
+LUA_FILES := $(wildcard *.lua)
check: check-luacheck check-format
@@ -11,7 +8,7 @@ check-luacheck:
luacheck --globals=vis -- $(LUA_FILES)
check-format:
- for f in $(LUA_FILES); do diff $$f <(lua-format $$f) >/dev/null; done
+ for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done
format:
lua-format -i $(LUA_FILES)