35 lines
717 B
Makefile
35 lines
717 B
Makefile
lua_version := "5.4"
|
|
rocks_tree := "lua_modules"
|
|
rockspec_file := "rockspecs/awesomewm.d.tl-dev-1.rockspec"
|
|
|
|
lua_bin := `command -v lua5.4`
|
|
lua := lua_bin + " -l set_paths"
|
|
luarocks := `command -v luarocks`
|
|
|
|
lua_targets := `find src/ -iname '*.lua' | xargs` + " " + `ls *.lua | xargs`
|
|
|
|
install:
|
|
{{ luarocks }} \
|
|
--lua-version {{ lua_version }} \
|
|
install \
|
|
--tree {{ rocks_tree }} \
|
|
--only-deps \
|
|
{{ rockspec_file }}
|
|
|
|
clean:
|
|
rm -rf {{ rocks_tree }}
|
|
|
|
check-lua *FLAGS:
|
|
luacheck {{ lua_targets }} {{ FLAGS }}
|
|
|
|
check-format:
|
|
stylua --check {{ lua_targets }}
|
|
|
|
check: check-lua check-format
|
|
|
|
run:
|
|
{{ lua }} src/awesomewm.d.tl/init.lua
|
|
|
|
debug:
|
|
{{ lua }} debug.lua src/awesomewm.d.tl/init.lua
|