From 752d2a69fe93523aa0b400f30e096f39e1b1eb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 14 Jun 2015 10:38:32 +0200 Subject: Generate the .app file directly from the Makefile This removes the need for a .app.src file entirely. The PROJECT_* variables and the OTP_DEPS variable allow us to specify everything we need. REL_DEPS and BUILD_DEPS will be added later on to allow users to cleanly specify those without adding them to the .app file. --- core/core.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/core.mk') 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 -- cgit v1.2.3