Comparison

GNUmakefile @ 9287:420e0bf55bf5

GNUmakefile: Allow overriding path to luacheck
author Kim Alvefur <zash@zash.se>
date Sun, 09 Sep 2018 19:23:26 +0200
parent 8823:0cf281afdf0e
child 9288:1330b5290a10
comparison
equal deleted inserted replaced
9286:992e986589b8 9287:420e0bf55bf5
16 INSTALL=install -p 16 INSTALL=install -p
17 INSTALL_DATA=$(INSTALL) -m644 17 INSTALL_DATA=$(INSTALL) -m644
18 INSTALL_EXEC=$(INSTALL) -m755 18 INSTALL_EXEC=$(INSTALL) -m755
19 MKDIR=install -d 19 MKDIR=install -d
20 MKDIR_PRIVATE=$(MKDIR) -m750 20 MKDIR_PRIVATE=$(MKDIR) -m750
21
22 LUACHECK=luacheck
21 23
22 .PHONY: all test coverage clean install 24 .PHONY: all test coverage clean install
23 25
24 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version 26 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version
25 $(MAKE) -C util-src install 27 $(MAKE) -C util-src install
75 luacov-console 77 luacov-console
76 luacov-console -s 78 luacov-console -s
77 @echo "To inspect individual files run: luacov-console -l FILENAME" 79 @echo "To inspect individual files run: luacov-console -l FILENAME"
78 80
79 lint: 81 lint:
80 luacheck -q $$(hg files -I '**.lua') prosody prosodyctl 82 $(LUACHECK) -q $$(hg files -I '**.lua') prosody prosodyctl
81 @echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored 83 @echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
82 84
83 util/%.so: 85 util/%.so:
84 $(MAKE) install -C util-src 86 $(MAKE) install -C util-src
85 87