awesomerc/Makefile

59 lines
1.4 KiB
Makefile
Raw Normal View History

# Install the dependencies in the local tree (aka project directory). This is
# useful for development, since we may require a different version of a
# dependency than the one installed in the system.
# awesome-slot is on heavy development, so we need to install the dependencies
# from the local source code.
install:
cd /home/aireone/documents/prog/awesome-slot \
&& luarocks \
--lua-version 5.4 \
make \
--tree /home/aireone/documents/prog/awesomerc/lua_modules
luarocks \
--lua-version 5.4 \
install \
--tree lua_modules \
--only-deps \
awesomerc-dev-1.rockspec
clean:
rm -rf lua_modules
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