summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d7b0614..b5e3296 100644
--- a/Makefile
+++ b/Makefile
@@ -96,6 +96,21 @@ $(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugi
chmod 755 $2
endef
+ifeq ($(COVER_GTT),yes)
+define GEN_LOCAL_TESTING_BIN
+
+$(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugins $1 $2 $(shell pwd)/extras/luacov/src $(shell pwd)/.coverage/
+chmod 755 $2
+
+endef
+else
+define GEN_LOCAL_TESTING_BIN
+
+$(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugins $1 $2
+chmod 755 $2
+
+endef
+endif
else
define GEN_LOCAL_BIN
@@ -103,6 +118,12 @@ $(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugi
chmod 755 $2
endef
+define GEN_LOCAL_TESTING_BIN
+
+$(RUN_GEN_BIN) $(shell pwd) $(shell pwd)/bin $(shell pwd)/lib $(shell pwd)/plugins $1 $2
+chmod 755 $2
+
+endef
endif
define GEN_INSTALL_BIN
@@ -163,7 +184,7 @@ bin/%: bin/%.in $(GEN_BIN) FORCE
@$(call GEN_LOCAL_BIN,$<,$@)
testing/%: testing/%.in $(GEN_BIN) FORCE
- @$(call GEN_LOCAL_BIN,$<,$@)
+ @$(call GEN_LOCAL_TESTING_BIN,$<,$@)
lib/gitano/%.lua: lib/gitano/%.lua.in $(GEN_BIN) FORCE
@$(call GEN_LOCAL_MOD,$<,$@)