vis-config

lua scripts to configure vis editor

git clone https://9o.is/git/vis-config.git

Makefile

(468B)


      1 .PHONY: check format check-luacheck check-format test
      2 
      3 LUA_FILES := $(shell find -name "*.lua" -not -path "./json.lua" -and -not -path "./tests/*")
      4 
      5 TEST_FILES := $(shell find -name "*_test.lua")
      6 
      7 check: check-luacheck check-format
      8 
      9 check-luacheck:
     10 	luacheck --globals=vis -- $(LUA_FILES)
     11 
     12 check-format:
     13 	set -e; for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done
     14 
     15 format:
     16 	lua-format -i $(LUA_FILES)
     17 
     18 test:
     19 	set -e; for tf in $(TEST_FILES); do "$$tf"; done