aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-05-18 14:58:14 +0100
committerMatthew Wild <mwild1@gmail.com>2018-05-18 14:58:14 +0100
commit49831eef8f860ca29dbe4639ed14feab73fb3189 (patch)
tree6184a3615944e94474ce097408ba806a0c92c443 /GNUmakefile
parent13eab871ba348646048623cadde95a5bffc39a82 (diff)
downloadprosody-49831eef8f860ca29dbe4639ed14feab73fb3189.tar.gz
prosody-49831eef8f860ca29dbe4639ed14feab73fb3189.zip
GNUmakefile: Add 'lint' target
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 0253cacd..69fa12f3 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -76,6 +76,10 @@ coverage:
luacov-console -s
@echo "To inspect individual files run: luacov-console -l FILENAME"
+lint:
+ luacheck -q $$(hg files -I '**.lua') prosody prosodyctl
+ @echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
+
util/%.so:
$(MAKE) install -C util-src