diff options
author | Jean-Sébastien Pédron <[email protected]> | 2015-10-26 16:10:55 +0100 |
---|---|---|
committer | Jean-Sébastien Pédron <[email protected]> | 2015-11-17 14:15:53 +0100 |
commit | 5d33b1607f0139afb4b8773c1c9f320433c1182b (patch) | |
tree | 15522f8b139439f6f8ce0da9e9dbc1de1ddc3c8d /core | |
parent | bd6e00675e2b87cf031017b931a02353fc67b250 (diff) | |
download | erlang.mk-5d33b1607f0139afb4b8773c1c9f320433c1182b.tar.gz erlang.mk-5d33b1607f0139afb4b8773c1c9f320433c1182b.tar.bz2 erlang.mk-5d33b1607f0139afb4b8773c1c9f320433c1182b.zip |
V=2 causes `set -x` to be set on forked shells
Diffstat (limited to 'core')
-rw-r--r-- | core/core.mk | 2 | ||||
-rw-r--r-- | core/deps.mk | 1 | ||||
-rw-r--r-- | core/erlc.mk | 7 |
3 files changed, 10 insertions, 0 deletions
diff --git a/core/core.mk b/core/core.mk index 407b940..3f9883b 100644 --- a/core/core.mk +++ b/core/core.mk @@ -30,9 +30,11 @@ PROJECT_VERSION ?= rolling V ?= 0 verbose_0 = @ +verbose_2 = set -x; verbose = $(verbose_$(V)) gen_verbose_0 = @echo " GEN " $@; +gen_verbose_2 = set -x; gen_verbose = $(gen_verbose_$(V)) # Temporary files directory. diff --git a/core/deps.mk b/core/deps.mk index 76f54d7..501bd45 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -43,6 +43,7 @@ export NO_AUTOPATCH # Verbosity. dep_verbose_0 = @echo " DEP " $(1); +dep_verbose_2 = set -x; dep_verbose = $(dep_verbose_$(V)) # Core targets. diff --git a/core/erlc.mk b/core/erlc.mk index 02524b4..c0aeb41 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -19,25 +19,32 @@ COMPILE_MIB_FIRST_PATHS = $(addprefix mibs/,$(addsuffix .mib,$(COMPILE_MIB_FIRST # Verbosity. app_verbose_0 = @echo " APP " $(PROJECT); +app_verbose_2 = set -x; app_verbose = $(app_verbose_$(V)) appsrc_verbose_0 = @echo " APP " $(PROJECT).app.src; +appsrc_verbose_2 = set -x; appsrc_verbose = $(appsrc_verbose_$(V)) makedep_verbose_0 = @echo " DEPEND" $(PROJECT).d; +makedep_verbose_2 = set -x; makedep_verbose = $(makedep_verbose_$(V)) erlc_verbose_0 = @echo " ERLC " $(filter-out $(patsubst %,%.erl,$(ERLC_EXCLUDE)),\ $(filter %.erl %.core,$(?F))); +erlc_verbose_2 = set -x; erlc_verbose = $(erlc_verbose_$(V)) xyrl_verbose_0 = @echo " XYRL " $(filter %.xrl %.yrl,$(?F)); +xyrl_verbose_2 = set -x; xyrl_verbose = $(xyrl_verbose_$(V)) asn1_verbose_0 = @echo " ASN1 " $(filter %.asn1,$(?F)); +asn1_verbose_2 = set -x; asn1_verbose = $(asn1_verbose_$(V)) mib_verbose_0 = @echo " MIB " $(filter %.bin %.mib,$(?F)); +mib_verbose_2 = set -x; mib_verbose = $(mib_verbose_$(V)) ifneq ($(wildcard src/),) |