awesomerc/Makefile

38 lines
776 B
Makefile
Raw Permalink Normal View History

2024-11-03 01:59:30 +01:00
dev:
scripts/run.sh start
test:
luarocks test
# Install the rock in the local tree (aka user home directory)
deploy:
luarocks --local build --force
mkdir -p ~/.config/awesome
cp -rv config/awesome ~/.config
try-current:
scripts/run.sh try-current
luacheck:
luacheck .
stylua:
stylua --check .
# ldoc-dryrun:
# $(eval TMP := $(shell mktemp -d))
# ldoc --fatalwarnings --dir $(TMP) .
# rm -rf $(TMP)
cspell:
cspell lint .
lint-rockspec:
luarocks lint awesomerc-dev-1.rockspec
# For now:
# - we don't run ldoc-dryrun because we don't have documentation
# - we don't run cspell because there are too many problems I don't want to fix now since the code will change
# lint: luacheck stylua ldoc-dryrun cspell lint-rockspec
lint: luacheck stylua lint-rockspec