aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-04 12:20:37 +0100
committerLoïc Hoguin <[email protected]>2018-12-04 12:20:37 +0100
commitc63d7be6f71a97f02ba62f78fec55afe8754fd8a (patch)
treec5b2c01143184ca28cd9cd8c81d46c30d48ae9c0
parent5a041bcf96a903202d6384d414f1c992ddf76e47 (diff)
downloaderlang.mk-c63d7be6f71a97f02ba62f78fec55afe8754fd8a.tar.gz
erlang.mk-c63d7be6f71a97f02ba62f78fec55afe8754fd8a.tar.bz2
erlang.mk-c63d7be6f71a97f02ba62f78fec55afe8754fd8a.zip
Add a V=3 that works like V=2 across all shell commands
V=2 only works against target commands, V=3 will also work against $(shell ...) commands.
-rw-r--r--core/core.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/core.mk b/core/core.mk
index 27e8a87..85bf65f 100644
--- a/core/core.mk
+++ b/core/core.mk
@@ -47,6 +47,10 @@ verbose_0 = @
verbose_2 = set -x;
verbose = $(verbose_$(V))
+ifeq ($(V),3)
+SHELL := $(SHELL) -x
+endif
+
gen_verbose_0 = @echo " GEN " $@;
gen_verbose_2 = set -x;
gen_verbose = $(gen_verbose_$(V))