Browse Source

Allow overriding APPS_DIR/DEPS_DIR in apps

Loïc Hoguin 6 years ago
parent
commit
bc6864dcc8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugins/bootstrap.mk

+ 3 - 3
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