Comparison

makefile @ 9682:814a9d89d2bd

makefile: Add lint target (to match GNUMakefile)
author Matthew Wild <mwild1@gmail.com>
date Tue, 04 Dec 2018 16:19:08 +0000
parent 8593:c4222e36333c
child 9683:bf32f2282b18
comparison
equal deleted inserted replaced
9681:861d510e1876 9682:814a9d89d2bd
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 clean install 24 .PHONY: all test 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
66 rm -f prosodyctl.install 68 rm -f prosodyctl.install
67 rm -f prosody.cfg.lua.install 69 rm -f prosody.cfg.lua.install
68 rm -f prosody.version 70 rm -f prosody.version
69 $(MAKE) clean -C util-src 71 $(MAKE) clean -C util-src
70 72
73 lint:
74 $(LUACHECK) -q $$(HGPLAIN= hg files -I '**.lua') prosody prosodyctl
75 @echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
76 shellcheck configure
77
71 test: 78 test:
72 busted --lua=$(RUNWITH) 79 busted --lua=$(RUNWITH)
73 80
74 81
75 prosody.install: prosody 82 prosody.install: prosody