aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bootstrap.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-11-19 18:52:30 +0100
committerLoïc Hoguin <[email protected]>2015-11-19 18:52:30 +0100
commitc110f49b16ebf3cf23fbfee2f81cc6760a04dc7b (patch)
tree68ec4e617346fc30060caeb3e29bfdeb4125d2b7 /plugins/bootstrap.mk
parentd514facbb41c1b76d76ffe435ccd5174d8c749c2 (diff)
parentd8678a9ff1280c213acab750bc55696282f90400 (diff)
downloaderlang.mk-c110f49b16ebf3cf23fbfee2f81cc6760a04dc7b.tar.gz
erlang.mk-c110f49b16ebf3cf23fbfee2f81cc6760a04dc7b.tar.bz2
erlang.mk-c110f49b16ebf3cf23fbfee2f81cc6760a04dc7b.zip
Merge branch 'do-not-export-templates' of https://github.com/rabbitmq/erlang.mk
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)