2424#
2525# To build `release` docs:
2626#
27- # make -f posix.mak RELEASE=1 release
27+ # make -f posix.mak release
2828#
2929# Individual documentation targets
3030# --------------------------------
@@ -319,10 +319,7 @@ SPEC_ROOT=$(addprefix spec/, \
319319 abi simd betterc)
320320SPEC_DD =$(addsuffix .dd,$(SPEC_ROOT ) )
321321
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
326323
327324MAN_PAGE =docs/man/man1/dmd.1
328325
@@ -347,10 +344,8 @@ PAGES_ROOT=$(SPEC_ROOT) 404 acknowledgements areas-of-d-usage $(ARTICLE_FILES) \
347344
348345# The contributors listing is dynamically generated
349346ifneq (1,$(DIFFABLE ) )
350- ifneq (1,$(RELEASE ) )
351347 PAGES_ROOT+ =foundation/contributors
352348endif
353- endif
354349
355350TARGETS =$(addsuffix .html,$(PAGES_ROOT ) )
356351
@@ -365,9 +360,11 @@ ALL_FILES = $(ALL_FILES_BUT_SITEMAP) $W/sitemap.html
365360
366361all : docs html
367362
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 ) )
369367release : html dmd-release druntime-release phobos-release d-release.tag
370- endif
371368
372369docs-latest : dmd-latest druntime-latest phobos-latest apidocs-latest
373370docs-prerelease : dmd-prerelease druntime-prerelease phobos-prerelease apidocs-prerelease
0 commit comments