Software / code / prosody
Comparison
makefile @ 9683:bf32f2282b18
makefile: Allow configuring path to busted (to match GNUMakefile)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 04 Dec 2018 16:19:58 +0000 |
| parent | 9682:814a9d89d2bd |
| child | 10880:324c50ea0f1d |
comparison
equal
deleted
inserted
replaced
| 9682:814a9d89d2bd | 9683:bf32f2282b18 |
|---|---|
| 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 | 21 |
| 22 LUACHECK=luacheck | 22 LUACHECK=luacheck |
| 23 BUSTED=busted | |
| 23 | 24 |
| 24 .PHONY: all test clean install | 25 .PHONY: all test clean install |
| 25 | 26 |
| 26 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version | 27 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version |
| 27 $(MAKE) -C util-src install | 28 $(MAKE) -C util-src install |
| 74 $(LUACHECK) -q $$(HGPLAIN= hg files -I '**.lua') prosody prosodyctl | 75 $(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 @echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored |
| 76 shellcheck configure | 77 shellcheck configure |
| 77 | 78 |
| 78 test: | 79 test: |
| 79 busted --lua=$(RUNWITH) | 80 $(BUSTED) --lua=$(RUNWITH) |
| 80 | 81 |
| 81 | 82 |
| 82 prosody.install: prosody | 83 prosody.install: prosody |
| 83 sed "1s| lua$$| $(RUNWITH)|; \ | 84 sed "1s| lua$$| $(RUNWITH)|; \ |
| 84 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ | 85 s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \ |