aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-12-28 12:45:07 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2021-12-28 13:24:07 +0100
commit3920d09706ca3a880d41d9e8d4fe53b971d3c748 (patch)
tree0787a93c812964826a182710d2da63005834d1f3 /Makefile
parent9d047e2228c8c54082cb0174ee19415130474c11 (diff)
downloadvis-lspc-3920d09706ca3a880d41d9e8d4fe53b971d3c748.tar.gz
vis-lspc-3920d09706ca3a880d41d9e8d4fe53b971d3c748.zip
make: implement check-format in POSIX shell
The docker image used for the CI does not contain bash.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cdf9647..7d505d4 100644
--- a/Makefile
+++ b/Makefile
@@ -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