chore: add Makefile

This commit is contained in:
Aire-One 2024-10-25 01:50:55 +02:00
parent ebf9a4c766
commit b2d65fdc40
3 changed files with 38 additions and 0 deletions

View File

@ -1,17 +1,31 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"useGitignore": true,
"ignorePaths": [".git"],
"enableGlobDot": true,
"words": [
"Aire-One",
"capi",
"constructorfct",
"dbus",
"drawin",
"dryrun",
"fatalwarnings",
"fullscreen",
"hasitem",
"JohnnyMorganz",
"keygrabber",
"ldoc",
"luacheck",
"luacheckrc",
"luadoc",
"luarocks",
"lunarmodules",
"mktemp",
"mousebindings",
"mousegrabber",
"rockspec",
"staticfct",
"stylua"
]

View File

@ -13,3 +13,6 @@ insert_final_newline = true
[*.{json,yaml}]
indent_size = 2
[Makefile]
indent_style = tab

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
install:
luarocks install --local --only-deps awesome-slot-dev-1.rockspec
luacheck:
luacheck .
stylua:
stylua --check .
ldoc-dryrun:
$(eval TMP := $(shell mktemp -d))
ldoc --fatalwarnings --dir $(TMP) .
rm -rf $(TMP)
cspell:
cspell lint .
lint: luacheck stylua ldoc-dryrun cspell
ldoc:
ldoc .