From bc6864dcc846aae785599799c653a8f1f9ce0502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 23 Nov 2018 18:33:16 +0100 Subject: Allow overriding APPS_DIR/DEPS_DIR in apps --- plugins/bootstrap.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/bootstrap.mk b/plugins/bootstrap.mk index 17b32b8..e632c9b 100644 --- a/plugins/bootstrap.mk +++ b/plugins/bootstrap.mk @@ -76,9 +76,9 @@ PROJECT_DESCRIPTION = New project PROJECT_VERSION = 0.1.0 # Make sure we know where the applications are located. -ROOT_DIR := $(call core_relpath,$(dir $(ERLANG_MK_FILENAME)),$(APPS_DIR)/app) -APPS_DIR := .. -DEPS_DIR := $(call core_relpath,$(DEPS_DIR),$(APPS_DIR)/app) +ROOT_DIR ?= $(call core_relpath,$(dir $(ERLANG_MK_FILENAME)),$(APPS_DIR)/app) +APPS_DIR ?= .. +DEPS_DIR ?= $(call core_relpath,$(DEPS_DIR),$(APPS_DIR)/app) include $$(ROOT_DIR)/erlang.mk endef -- cgit v1.2.3