# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1536513806 -7200
# Node ID 420e0bf55bf598a013c3679bd5c16b1b846e81b6
# Parent  992e986589b83e64aef4a543151ef0b796412f40
GNUmakefile: Allow overriding path to luacheck

diff -r 992e986589b8 -r 420e0bf55bf5 GNUmakefile
--- a/GNUmakefile	Sun Sep 09 17:47:47 2018 +0200
+++ b/GNUmakefile	Sun Sep 09 19:23:26 2018 +0200
@@ -19,6 +19,8 @@
 MKDIR=install -d
 MKDIR_PRIVATE=$(MKDIR) -m750
 
+LUACHECK=luacheck
+
 .PHONY: all test coverage clean install
 
 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version
@@ -77,7 +79,7 @@
 	@echo "To inspect individual files run: luacov-console -l FILENAME"
 
 lint:
-	luacheck -q $$(hg files -I '**.lua') prosody prosodyctl
+	$(LUACHECK) -q $$(hg files -I '**.lua') prosody prosodyctl
 	@echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
 
 util/%.so: