11
11
#
12
12
# This makefile supports 3 flavors of documentation:
13
13
#
14
- # latest Latest released version (by git tag )
14
+ # stable Stable build (uses upstream/stable )
15
15
# prerelease Master (uses the D repositories as they exist locally)
16
16
# release Documentation build that is shipped with the binary release
17
17
#
18
18
# For `release` the LATEST version is not yet published at build time,
19
19
# hence a few things differ from a `prerelease` build.
20
20
#
21
- # To build `latest ` and `prerelease` docs:
21
+ # To build `stable ` and `prerelease` docs:
22
22
#
23
23
# make -f posix.mak all
24
24
#
46
46
# phobos-prerelease
47
47
# apidocs-prerelease Ddox documentation
48
48
#
49
- # B) `docs-latest` (aka stable)
49
+ # B) `docs-latest` (aka upstream/ stable)
50
50
#
51
51
# Based on the last official release (git tag), the repositories are freshly cloned from GitHub.
52
52
# Individual targets include:
@@ -159,10 +159,10 @@ GENERATED=.generated
159
159
G =$(GENERATED )
160
160
161
161
# Last released versions
162
- DMD_STABLE_DIR =$G/dmd-${LATEST}
162
+ DMD_STABLE_DIR =$G/dmd-stable
163
163
DMD_STABLE =$(DMD_STABLE_DIR ) /generated/$(OS ) /release/$(MODEL ) /dmd
164
- DRUNTIME_STABLE_DIR =$G/druntime-${LATEST}
165
- PHOBOS_STABLE_DIR =$G/phobos-${LATEST}
164
+ DRUNTIME_STABLE_DIR =$G/druntime-stable
165
+ PHOBOS_STABLE_DIR =$G/phobos-stable
166
166
167
167
# Auto-cloning missing directories
168
168
$(shell [ ! -d $(DMD_DIR) ] && git clone --depth=1 ${GIT_HOME}/dmd $(DMD_DIR))
@@ -171,7 +171,7 @@ $(shell [ ! -d $(DRUNTIME_DIR) ] && git clone --depth=1 ${GIT_HOME}/druntime $(D
171
171
# ###############################################################################
172
172
# Automatically generated directories
173
173
PHOBOS_DIR_GENERATED =$(GENERATED ) /phobos-prerelease
174
- PHOBOS_STABLE_DIR_GENERATED =$(GENERATED ) /phobos-latest
174
+ PHOBOS_STABLE_DIR_GENERATED =$(GENERATED ) /phobos-stable
175
175
# The assert_writeln_magic tool transforms all source files from Phobos. Hence
176
176
# - a temporary folder with a copy of Phobos needs to be generated
177
177
# - a list of all files in Phobos and the temporary copy is needed to setup proper
@@ -181,7 +181,7 @@ PHOBOS_FILES_GENERATED := $(subst $(PHOBOS_DIR), $(PHOBOS_DIR_GENERATED), $(PHOB
181
181
ifndef RELEASE
182
182
# TODO: should be replaced by make targets
183
183
$(shell [ ! -d $(PHOBOS_DIR) ] && git clone --depth=1 ${GIT_HOME}/phobos $(PHOBOS_DIR))
184
- $(shell [ ! -d $(PHOBOS_STABLE_DIR) ] && git clone -b v${LATEST} --depth=1 ${GIT_HOME}/phobos $(PHOBOS_STABLE_DIR))
184
+ $(shell [ ! -d $(PHOBOS_STABLE_DIR) ] && git clone -b stable --depth=1 ${GIT_HOME}/phobos $(PHOBOS_STABLE_DIR))
185
185
PHOBOS_STABLE_FILES := $(shell find $(PHOBOS_STABLE_DIR ) -name '* .d' -o -name '* .mak' -o -name '* .ddoc')
186
186
PHOBOS_STABLE_FILES_GENERATED := $(subst $(PHOBOS_STABLE_DIR ) , $(PHOBOS_STABLE_DIR_GENERATED ) , $(PHOBOS_STABLE_FILES ) )
187
187
endif
@@ -416,7 +416,7 @@ ${GENERATED}/${LATEST}.ddoc :
416
416
mkdir -p $(dir $@ )
417
417
echo " LATEST=${LATEST} " > $@
418
418
419
- ${GENERATED}/modlist-${LATEST} .ddoc : modlist.d ${STABLE_DMD} $(DRUNTIME_STABLE_DIR ) $(PHOBOS_STABLE_DIR ) $(DMD_STABLE_DIR )
419
+ ${GENERATED}/modlist-stable .ddoc : modlist.d ${STABLE_DMD} $(DRUNTIME_STABLE_DIR ) $(PHOBOS_STABLE_DIR ) $(DMD_STABLE_DIR )
420
420
mkdir -p $(dir $@ )
421
421
$(STABLE_RDMD ) modlist.d $(DRUNTIME_STABLE_DIR ) $(PHOBOS_STABLE_DIR ) $(DMD_STABLE_DIR ) $(MOD_EXCLUDES_STABLE ) \
422
422
$(addprefix --dump , object std etc core) --dump dmd > $@
@@ -589,8 +589,8 @@ $G/dblog_latest2.ddoc: $G/dblog_latest.ddoc
589
589
# ###############################################################################
590
590
591
591
# Clone snapshots of the latest official release of all main D repositories
592
- $G/% -${LATEST} :
593
- git clone -b v ${LATEST} --depth=1 ${GIT_HOME} /$(notdir $* ) $@
592
+ $G/% -stable :
593
+ git clone -b stable --depth=1 ${GIT_HOME} /$(notdir $* ) $@
594
594
595
595
# Clone all main D repositories
596
596
${DMD_DIR} ${DRUNTIME_DIR} ${PHOBOS_DIR} ${TOOLS_DIR} ${INSTALLER_DIR} :
@@ -818,7 +818,7 @@ chm-nav-prerelease.json : $(DDOC) std.ddoc spec/spec.ddoc ${GENERATED}/modlist-p
818
818
# ###############################################################################
819
819
820
820
d-latest.tag d-tags-latest.json : chmgen.d $(STABLE_DMD ) $(ALL_FILES ) phobos-latest druntime-latest chm-nav-latest.json
821
- $(STABLE_RDMD ) chmgen.d --root=$W --only-tags --target latest
821
+ $(STABLE_RDMD ) chmgen.d --root=$W --only-tags --target stable
822
822
823
823
d-release.tag d-tags-release.json : chmgen.d $(STABLE_DMD ) $(ALL_FILES ) phobos-release druntime-release chm-nav-release.json
824
824
$(STABLE_RDMD ) chmgen.d --root=$W --only-tags --target release
0 commit comments