depot: make DEPOT_DIR overridable

This commit is contained in:
Josef Söntgen 2018-01-09 13:33:48 +01:00 committed by Christian Helmuth
parent a867c29633
commit 114af00913
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ REPOSITORIES ?= $(shell find $(GENODE_DIR)/repos -follow -mindepth 1 -maxdepth 1
# list of all repositories that contain depot recipes
REP_RECIPES_DIRS := $(wildcard $(addsuffix /recipes,$(REPOSITORIES)))
DEPOT_DIR := $(GENODE_DIR)/depot
DEPOT_DIR ?= $(GENODE_DIR)/depot
usage:
@$(ECHO) "$(subst $(NEWLINE),\n,$(HELP_MESSAGE))";

View File

@ -38,7 +38,7 @@ include $(GENODE_DIR)/tool/depot/mk/front_end.inc
#
ifneq ($(MAKECMDGOALS),)
DEPENDENCIES_CMD := $(GENODE_DIR)/tool/depot/dependencies $(MAKECMDGOALS)
DEPENDENCIES_CMD := $(GENODE_DIR)/tool/depot/dependencies DEPOT_DIR="$(DEPOT_DIR)" $(MAKECMDGOALS)
DEPENDENCIES_RESULT := $(shell $(DEPENDENCIES_CMD) 2> /dev/null || true)
endif