From 5c5179dba66f55974c81e945ff4cf970a01c3d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 9 May 2015 22:08:47 +0300 Subject: Add a 'run' command to run the relx release Should only be used during development. Stolen idea from Tristan Sloughter who stole it from Ahmad Sherif. This commit also introduces the 'erlang' function for executing Erlang code written directly in the Makefile. The rest of the project will eventually move to using it as it's much cleaner than the previous solution. --- core/core.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/core.mk') 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) -- cgit v1.2.3