24
24
#
25
25
# To build `release` docs:
26
26
#
27
- # make -f posix.mak RELEASE=1 release
27
+ # make -f posix.mak release
28
28
#
29
29
# Individual documentation targets
30
30
# --------------------------------
@@ -319,10 +319,7 @@ 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/release-schedule
323
- ifneq (1,$(RELEASE ) )
324
- CHANGELOG_FILES+ =changelog/pending
325
- endif
322
+ CHANGELOG_FILES: =$(basename $(subst _pre.dd,.dd,$(wildcard changelog/* .dd) ) ) changelog/pending changelog/release-schedule
326
323
327
324
MAN_PAGE =docs/man/man1/dmd.1
328
325
@@ -347,10 +344,8 @@ PAGES_ROOT=$(SPEC_ROOT) 404 acknowledgements areas-of-d-usage $(ARTICLE_FILES) \
347
344
348
345
# The contributors listing is dynamically generated
349
346
ifneq (1,$(DIFFABLE ) )
350
- ifneq (1,$(RELEASE ) )
351
347
PAGES_ROOT+ =foundation/contributors
352
348
endif
353
- endif
354
349
355
350
TARGETS =$(addsuffix .html,$(PAGES_ROOT ) )
356
351
@@ -365,9 +360,11 @@ ALL_FILES = $(ALL_FILES_BUT_SITEMAP) $W/sitemap.html
365
360
366
361
all : docs html
367
362
368
- ifeq (1,$(RELEASE ) )
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 ) )
369
367
release : html dmd-release druntime-release phobos-release d-release.tag
370
- endif
371
368
372
369
docs-latest : dmd-latest druntime-latest phobos-latest apidocs-latest
373
370
docs-prerelease : dmd-prerelease druntime-prerelease phobos-prerelease apidocs-prerelease
0 commit comments