diff options
Diffstat (limited to 'core/core.mk')
-rw-r--r-- | core/core.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/core.mk b/core/core.mk index dd66bec..46b12d1 100644 --- a/core/core.mk +++ b/core/core.mk @@ -21,6 +21,8 @@ ERLANG_MK_VERSION = 1 PROJECT ?= $(notdir $(CURDIR)) PROJECT := $(strip $(PROJECT)) +PROJECT_VERSION ?= rolling + # Verbosity. V ?= 0 @@ -117,11 +119,19 @@ help:: # Core functions. +empty := +space := $(empty) $(empty) +comma := , + define newline endef +define erlang_list +[$(subst $(space),$(comma),$(strip $(1)))] +endef + # Adding erlang.mk to make Erlang scripts who call init:get_plain_arguments() happy. define erlang $(ERL) -pa $(ERLANG_MK_TMP)/rebar/ebin -eval "$(subst $(newline),,$(subst ",\",$(1)))" -- erlang.mk |