Software /
code /
prosody
Comparison
GNUmakefile @ 8612:1f2fb8070c7c
GNUMakefile: Add 'coverage' target (requires luacov and luacov-console)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 17 Mar 2018 09:31:57 +0000 |
parent | 8592:bd4f8a2b72c7 |
child | 8782:daa518a22c34 |
comparison
equal
deleted
inserted
replaced
8611:937de0c39279 | 8612:1f2fb8070c7c |
---|---|
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 | 21 |
22 .PHONY: all test clean install | 22 .PHONY: all test coverage clean install |
23 | 23 |
24 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version | 24 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version |
25 $(MAKE) -C util-src install | 25 $(MAKE) -C util-src install |
26 ifeq ($(EXCERTS),yes) | 26 ifeq ($(EXCERTS),yes) |
27 -$(MAKE) -C certs localhost.crt example.com.crt | 27 -$(MAKE) -C certs localhost.crt example.com.crt |
66 $(MAKE) clean -C util-src | 66 $(MAKE) clean -C util-src |
67 | 67 |
68 test: | 68 test: |
69 busted --lua=$(RUNWITH) | 69 busted --lua=$(RUNWITH) |
70 | 70 |
71 coverage: | |
72 -rm -- luacov.* | |
73 busted --lua=$(RUNWITH) -c | |
74 luacov | |
75 luacov-console | |
76 luacov-console -s | |
77 | |
71 util/%.so: | 78 util/%.so: |
72 $(MAKE) install -C util-src | 79 $(MAKE) install -C util-src |
73 | 80 |
74 %.install: % | 81 %.install: % |
75 sed "1s| lua$$| $(RUNWITH)|; \ | 82 sed "1s| lua$$| $(RUNWITH)|; \ |