aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/core.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/core.mk b/core/core.mk
index 5cb0b54..8d05adc 100644
--- a/core/core.mk
+++ b/core/core.mk
@@ -85,6 +85,15 @@ help::
# Core functions.
+define newline
+
+
+endef
+
+define erlang
+$(ERL) -eval "$(subst $(newline),,$(subst ",\\",$(1)))"
+endef
+
ifeq ($(shell which wget 2>/dev/null | wc -l), 1)
define core_http_get
wget --no-check-certificate -O $(1) $(2)|| rm $(1)