aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bootstrap.mk
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2015-11-18 19:02:28 +0100
committerJean-Sébastien Pédron <[email protected]>2015-11-19 17:42:41 +0100
commitd8678a9ff1280c213acab750bc55696282f90400 (patch)
treebf494626487178b10be4e5d4bd9cbac7093baf9a /plugins/bootstrap.mk
parent5ebdaa80c8b6f0e2c0431a1000b50fee87a62fb4 (diff)
downloaderlang.mk-d8678a9ff1280c213acab750bc55696282f90400.tar.gz
erlang.mk-d8678a9ff1280c213acab750bc55696282f90400.tar.bz2
erlang.mk-d8678a9ff1280c213acab750bc55696282f90400.zip
Do not export templates as environment variables
We can write the file using the Makefile variables without going through environment variables.
Diffstat (limited to 'plugins/bootstrap.mk')
-rw-r--r--plugins/bootstrap.mk6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk
index dbd115f..464d8fe 100644
--- a/plugins/bootstrap.mk
+++ b/plugins/bootstrap.mk
@@ -344,7 +344,7 @@ endef
# Plugin-specific targets.
define render_template
- $(verbose) echo "$${_$(1)}" > $(2)
+ $(verbose) printf -- '$(subst $(newline),\n,$(subst %,%%,$(subst ','\'',$(subst $(tab),$(WS),$(call $(1))))))\n' > $(2)
endef
ifndef WS
@@ -355,10 +355,6 @@ WS = $(tab)
endif
endif
-$(foreach template,$(filter bs_% tpl_%,$(.VARIABLES)), \
- $(eval _$(template) = $$(subst $$(tab),$$(WS),$$($(template)))) \
- $(eval export _$(template)))
-
bootstrap:
ifneq ($(wildcard src/),)
$(error Error: src/ directory already exists)