diff options
author | Loïc Hoguin <[email protected]> | 2015-07-04 18:10:03 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-07-04 18:10:03 +0200 |
commit | 0eb54a71605a955df14c5df793ebe676c86259f9 (patch) | |
tree | a9259406c19b034c32d426d570b941e89e237058 /plugins/bootstrap.mk | |
parent | c2debce2bfcf2400905ff56c4a80e4c3251c6e56 (diff) | |
download | erlang.mk-0eb54a71605a955df14c5df793ebe676c86259f9.tar.gz erlang.mk-0eb54a71605a955df14c5df793ebe676c86259f9.tar.bz2 erlang.mk-0eb54a71605a955df14c5df793ebe676c86259f9.zip |
Add $(verbose) to avoid completely silencing commands
Diffstat (limited to 'plugins/bootstrap.mk')
-rw-r--r-- | plugins/bootstrap.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk index 3cb9830..7f8331e 100644 --- a/plugins/bootstrap.mk +++ b/plugins/bootstrap.mk @@ -6,7 +6,7 @@ # Core targets. help:: - @printf "%s\n" "" \ + $(verbose) printf "%s\n" "" \ "Bootstrap targets:" \ " bootstrap Generate a skeleton of an OTP application" \ " bootstrap-lib Generate a skeleton of an OTP library" \ @@ -334,7 +334,7 @@ endef # Plugin-specific targets. define render_template - @echo "$${_$(1)}" > $(2) + $(verbose) echo "$${_$(1)}" > $(2) endef ifndef WS @@ -354,7 +354,7 @@ ifneq ($(wildcard src/),) $(error Error: src/ directory already exists) endif $(call render_template,bs_Makefile,Makefile) - @mkdir src/ + $(verbose) mkdir src/ $(call render_template,bs_appsrc,src/$(PROJECT).app.src) $(call render_template,bs_app,src/$(PROJECT)_app.erl) $(eval n := $(PROJECT)_sup) @@ -365,7 +365,7 @@ ifneq ($(wildcard src/),) $(error Error: src/ directory already exists) endif $(call render_template,bs_Makefile,Makefile) - @mkdir src/ + $(verbose) mkdir src/ $(call render_template,bs_appsrc_lib,src/$(PROJECT).app.src) bootstrap-rel: @@ -376,7 +376,7 @@ ifneq ($(wildcard rel/),) $(error Error: rel/ directory already exists) endif $(call render_template,bs_relx_config,relx.config) - @mkdir rel/ + $(verbose) mkdir rel/ $(call render_template,bs_sys_config,rel/sys.config) $(call render_template,bs_vm_args,rel/vm.args) @@ -396,4 +396,4 @@ endif $(call render_template,tpl_$(t),src/$(n).erl) list-templates: - @echo Available templates: $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES)))) + $(verbose) echo Available templates: $(sort $(patsubst tpl_%,%,$(filter tpl_%,$(.VARIABLES)))) |