awesomewm.d.tl/justfile

34 lines
681 B
Makefile
Raw Normal View History

2022-06-26 17:37:53 +02:00
lua_version := "5.4"
2022-08-09 23:32:30 +02:00
lua_bin := "lua" + lua_version
lua := lua_bin + " -l set_paths"
2022-06-26 17:37:53 +02:00
rocks_tree := "lua_modules"
rockspec_file := "rockspecs/awesomewm.d.tl-dev-1.rockspec"
lua_targets := `find src/ -iname '*.lua' | xargs` + " " + `ls *.lua | xargs`
install:
2022-08-09 23:32:30 +02:00
luarocks \
2022-06-26 17:37:53 +02:00
--lua-version {{ lua_version }} \
install \
--tree {{ rocks_tree }} \
--only-deps \
{{ rockspec_file }}
2022-08-07 20:56:42 +02:00
uninstall:
2022-06-26 17:37:53 +02:00
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