From 85e8aced46fecc5acbdf96bac5dc3af6217ba16e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 2 Aug 2021 22:18:31 +0200 Subject: extract bindings into a seperate source file --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a43dff1..116c2a0 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,17 @@ .PHONY: check format check-luacheck check-format +LUA_FILES := $(shell find -name "*.lua" -not -path "./json.lua") + # bash's process substitution is used for check-format SHELL := /bin/bash check: check-luacheck check-format check-luacheck: - luacheck --globals=vis -- init.lua + luacheck --globals=vis -- $(LUA_FILES) check-format: - diff init.lua <(lua-format init.lua) >/dev/null + for lf in $(LUA_FILES); do diff $$lf <(lua-format $$lf) >/dev/null; done format: - lua-format -i init.lua + lua-format -i $(LUA_FILES) -- cgit v1.2.3