24
24
#
25
25
# To build `release` docs:
26
26
#
27
- # make -f posix.mak release
27
+ # make -f posix.mak RELEASE=1 release
28
28
#
29
29
# Individual documentation targets
30
30
# --------------------------------
@@ -319,7 +319,10 @@ SPEC_ROOT=$(addprefix spec/, \
319
319
abi simd betterc)
320
320
SPEC_DD =$(addsuffix .dd,$(SPEC_ROOT ) )
321
321
322
- CHANGELOG_FILES: =$(basename $(subst _pre.dd,.dd,$(wildcard changelog/* .dd) ) ) changelog/pending changelog/release-schedule
322
+ CHANGELOG_FILES: =$(basename $(subst _pre.dd,.dd,$(wildcard changelog/* .dd) ) ) changelog/release-schedule
323
+ ifneq (1,$(RELEASE ) )
324
+ CHANGELOG_FILES+ =changelog/pending
325
+ endif
323
326
324
327
MAN_PAGE =docs/man/man1/dmd.1
325
328
@@ -344,8 +347,10 @@ PAGES_ROOT=$(SPEC_ROOT) 404 acknowledgements areas-of-d-usage $(ARTICLE_FILES) \
344
347
345
348
# The contributors listing is dynamically generated
346
349
ifneq (1,$(DIFFABLE ) )
350
+ ifneq (1,$(RELEASE ) )
347
351
PAGES_ROOT+ =foundation/contributors
348
352
endif
353
+ endif
349
354
350
355
TARGETS =$(addsuffix .html,$(PAGES_ROOT ) )
351
356
@@ -360,11 +365,9 @@ ALL_FILES = $(ALL_FILES_BUT_SITEMAP) $W/sitemap.html
360
365
361
366
all : docs html
362
367
363
- # Avoid running additional scripts when building release (tarball)
364
- # docs for the sake of stability and reproducibility.
365
- release : CHANGELOG_FILES:=$(filter-out changelog/pending,$(CHANGELOG_FILES ) )
366
- release : PAGES_ROOT:=$(filter-out foundation/contributors,$(PAGES_ROOT ) )
368
+ ifeq (1,$(RELEASE ) )
367
369
release : html dmd-release druntime-release phobos-release d-release.tag
370
+ endif
368
371
369
372
docs-latest : dmd-latest druntime-latest phobos-latest apidocs-latest
370
373
docs-prerelease : dmd-prerelease druntime-prerelease phobos-prerelease apidocs-prerelease
0 commit comments