Skip to content

Commit 23d525f

Browse files
committed
Checkout stable repositories into .generated
1 parent dfc3310 commit 23d525f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

posix.mak

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ DPL_DOCS_PATH=dpl-docs
3737
DPL_DOCS=$(DPL_DOCS_PATH)/dpl-docs
3838
REMOTE_DIR[email protected]:data
3939
TMP?=/tmp
40+
GENERATED=.generated
41+
G=$(GENERATED)
4042

4143
# Last released versions
42-
DMD_STABLE_DIR=${DMD_DIR}-${LATEST}
44+
DMD_STABLE_DIR=$G/dmd-${LATEST}
4345
DMD_STABLE=$(DMD_STABLE_DIR)/generated/$(OS)/release/$(MODEL)/dmd
44-
DRUNTIME_STABLE_DIR=${DRUNTIME_DIR}-${LATEST}
45-
PHOBOS_STABLE_DIR=${PHOBOS_DIR}-${LATEST}
46+
DRUNTIME_STABLE_DIR=$G/druntime-${LATEST}
47+
PHOBOS_STABLE_DIR=$G/phobos-${LATEST}
4648

4749
################################################################################
4850
# Automatically generated directories
49-
GENERATED=.generated
50-
G=$(GENERATED)
5151
PHOBOS_DIR_GENERATED=$(GENERATED)/phobos-prerelease
5252
PHOBOS_STABLE_DIR_GENERATED=$(GENERATED)/phobos-release
5353
# The assert_writeln_magic tool transforms all source files from Phobos. Hence
@@ -404,9 +404,11 @@ $G/twid_latest.ddoc:
404404
# Git rules
405405
################################################################################
406406

407-
../%-${LATEST} :
407+
# Clone snapshots of the latest official release of all main D repositories
408+
$G/%-${LATEST} :
408409
git clone -b v${LATEST} --depth=1 ${GIT_HOME}/$(notdir $*) $@
409410

411+
# Clone all main D repositories
410412
${DMD_DIR} ${DRUNTIME_DIR} ${PHOBOS_DIR} ${TOOLS_DIR} ${INSTALLER_DIR}:
411413
git clone --depth=1 ${GIT_HOME}/$(notdir $(@F)) $@
412414

0 commit comments

Comments
 (0)