Comparison

makefile @ 10563:e8db377a2983

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 24 Dec 2019 00:39:45 +0100
parent 9683:bf32f2282b18
child 10880:324c50ea0f1d
comparison
equal deleted inserted replaced
10562:670afc079f68 10563:e8db377a2983
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
23 BUSTED=busted
21 24
22 .PHONY: all test clean install 25 .PHONY: all test clean install
23 26
24 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version 27 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version
25 $(MAKE) -C util-src install 28 $(MAKE) -C util-src install
66 rm -f prosodyctl.install 69 rm -f prosodyctl.install
67 rm -f prosody.cfg.lua.install 70 rm -f prosody.cfg.lua.install
68 rm -f prosody.version 71 rm -f prosody.version
69 $(MAKE) clean -C util-src 72 $(MAKE) clean -C util-src
70 73
74 lint:
75 $(LUACHECK) -q $$(HGPLAIN= hg files -I '**.lua') prosody prosodyctl
76 @echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
77 shellcheck configure
78
71 test: 79 test:
72 busted --lua=$(RUNWITH) 80 $(BUSTED) --lua=$(RUNWITH)
73 81
74 82
75 prosody.install: prosody 83 prosody.install: prosody
76 sed "1s| lua$$| $(RUNWITH)|; \ 84 sed "1s| lua$$| $(RUNWITH)|; \
77 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ 85 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \