From 6e1bdb195d97e5b6ce064ee1affc2fc125cf05db Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Thu, 11 May 2017 00:59:47 +0200 Subject: [PATCH] Ensure that the directory phobos-stable exists The current repository layout assumes that the latest, stable phobos (e.g. ../phobos-2.074.0) exists. For now, this is automatically ensured before the Makefile targets are evaluated. --- posix.mak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posix.mak b/posix.mak index 217028ccca..a03803bcad 100644 --- a/posix.mak +++ b/posix.mak @@ -55,6 +55,8 @@ PHOBOS_STABLE_DIR_GENERATED=$(GENERATED)/phobos-release # Makefile dependencies and rules PHOBOS_FILES := $(shell find $(PHOBOS_DIR) -name '*.d' -o -name '*.mak' -o -name '*.ddoc') PHOBOS_FILES_GENERATED := $(subst $(PHOBOS_DIR), $(PHOBOS_DIR_GENERATED), $(PHOBOS_FILES)) +$(shell [ ! -d $(PHOBOS_DIR) ] && git clone --depth=1 ${GIT_HOME}/phobos $(PHOBOS_DIR)) +$(shell [ ! -d $(PHOBOS_STABLE_DIR) ] && git clone -b v${LATEST} --depth=1 ${GIT_HOME}/phobos $(PHOBOS_STABLE_DIR)) PHOBOS_STABLE_FILES := $(shell find $(PHOBOS_STABLE_DIR) -name '*.d' -o -name '*.mak' -o -name '*.ddoc') PHOBOS_STABLE_FILES_GENERATED := $(subst $(PHOBOS_STABLE_DIR), $(PHOBOS_STABLE_DIR_GENERATED), $(PHOBOS_STABLE_FILES)) ################################################################################