Browse Source

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.
Loïc Hoguin 6 years ago
parent
commit
c63d7be6f7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/core.mk

+ 4 - 0
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))