@@ -284,6 +284,7 @@ DDOC_VARS_PRERELEASE_VERBATIM=$(DDOC_VARS_PRERELEASE) \
284
284
# ###############################################################################
285
285
286
286
DDOC_BIN: =$G/ddoc
287
+ DDOC_BIN_DMD: =$(DDOC_BIN ) --compiler=$(DMD )
287
288
288
289
# ###############################################################################
289
290
# Resources
@@ -464,16 +465,16 @@ dautotest: all verbatim pdf diffable-intermediaries
464
465
# sub-directories before their parents.
465
466
466
467
$W/changelog/% .html : changelog/% _pre.dd $(CHANGELOG_PRE_DDOC ) $(DDOC_BIN ) | $(DMD )
467
- $(DDOC_BIN ) -conf= -c -o- -Df$@ $(CHANGELOG_PRE_DDOC ) $<
468
+ $(DDOC_BIN_DMD ) -conf= -c -o- -Df$@ $(CHANGELOG_PRE_DDOC ) $<
468
469
469
470
$W/changelog/pending.html : changelog/pending.dd $(CHANGELOG_PENDING_DDOC ) $(DDOC_BIN ) | $(DMD )
470
- $(DDOC_BIN ) -conf= -c -o- -Df$@ $(CHANGELOG_PENDING_DDOC ) $<
471
+ $(DDOC_BIN_DMD ) -conf= -c -o- -Df$@ $(CHANGELOG_PENDING_DDOC ) $<
471
472
472
473
$W/changelog/% .html : changelog/% .dd $(CHANGELOG_DDOC ) $(DDOC_BIN ) | $(DMD )
473
- $(DDOC_BIN ) -conf= -c -o- -Df$@ $(CHANGELOG_DDOC ) $<
474
+ $(DDOC_BIN_DMD ) -conf= -c -o- -Df$@ $(CHANGELOG_DDOC ) $<
474
475
475
476
$W/spec/% .html : spec/% .dd $(SPEC_DDOC ) $(DMD ) $(DDOC_BIN )
476
- $(DDOC_BIN ) --compiler= $( DMD ) -Df$@ $(SPEC_DDOC ) $<
477
+ $(DDOC_BIN_DMD ) -Df$@ $(SPEC_DDOC ) $<
477
478
478
479
$W/404.html : 404.dd $(DDOC ) $(DMD )
479
480
$(DMD ) -conf= -c -o- -Df$@ $(DDOC ) errorpage.ddoc $<
@@ -482,19 +483,19 @@ $(DOC_OUTPUT_DIR)/contributors.html: contributors.dd $G/contributors_list.ddoc $
482
483
$(DMD ) -conf= -c -o- -Df$@ $(DDOC ) $(word 2, $^ ) $<
483
484
484
485
$W/articles/% .html : articles/% .dd $(DDOC ) $(DMD ) $(DDOC_BIN ) articles/articles.ddoc
485
- $(DDOC_BIN ) --compiler= $( DMD ) -conf= -c -o- -Df$@ $(DDOC ) $< articles/articles.ddoc
486
+ $(DDOC_BIN_DMD ) -conf= -c -o- -Df$@ $(DDOC ) $< articles/articles.ddoc
486
487
487
488
$W/foundation/% .html : foundation/% .dd $(DDOC ) $(DMD ) $(DDOC_BIN ) foundation/foundation.ddoc
488
- $(DDOC_BIN ) --compiler= $( DMD ) -conf= -c -o- -Df$@ $(DDOC ) $< foundation/foundation.ddoc
489
+ $(DDOC_BIN_DMD ) -conf= -c -o- -Df$@ $(DDOC ) $< foundation/foundation.ddoc
489
490
490
491
$W/% .html : % .dd $(DDOC ) $(DMD ) $(DDOC_BIN )
491
- $(DDOC_BIN ) --compiler= $( DMD ) -conf= -c -o- -Df$@ $(DDOC ) $<
492
+ $(DDOC_BIN_DMD ) -conf= -c -o- -Df$@ $(DDOC ) $<
492
493
493
- $W/% .verbatim : % _pre.dd verbatim.ddoc $(DMD )
494
- $(DMD ) -c -o- -Df$@ verbatim.ddoc $<
494
+ $W/% .verbatim : % _pre.dd verbatim.ddoc $(DDOC_BIN )
495
+ $(DDOC_BIN_DMD ) -c -o- -Df$@ verbatim.ddoc $<
495
496
496
- $W/% .verbatim : % .dd verbatim.ddoc $(DMD )
497
- $(DMD ) -c -o- -Df$@ verbatim.ddoc $<
497
+ $W/% .verbatim : % .dd verbatim.ddoc $(DDOC_BIN )
498
+ $(DDOC_BIN_DMD ) -c -o- -Df$@ verbatim.ddoc $<
498
499
499
500
$W/% .php : % .php.dd $(DDOC ) $(DMD )
500
501
$(DMD ) -conf= -c -o- -Df$@ $(DDOC ) $<
@@ -515,7 +516,7 @@ $W/% : %
515
516
cp $< $@
516
517
517
518
$W/dmd-% .html : % .ddoc dcompiler.dd $(DDOC ) $(DDOC_BIN )
518
- $(DDOC_BIN ) -Df$@ $(DDOC ) dcompiler.dd $<
519
+ $(DDOC_BIN_DMD ) -Df$@ $(DDOC ) dcompiler.dd $<
519
520
520
521
$W/dmd-% .verbatim : % .ddoc dcompiler.dd verbatim.ddoc $(DMD )
521
522
$(DMD ) -c -o- -Df$@ verbatim.ddoc dcompiler.dd $<
530
531
$G/dlangspec.d : $(SPEC_DD ) ${STABLE_DMD}
531
532
$(STABLE_RDMD ) $(TOOLS_DIR ) /catdoc.d -o$@ $(SPEC_DD )
532
533
533
- $G/dlangspec.html : $(DDOC ) ebook.ddoc $G/dlangspec.d $(DMD )
534
- $(DMD ) -conf= -Df$@ $(DDOC ) ebook.ddoc $G /dlangspec.d
534
+ $G/dlangspec.html : $(DDOC ) ebook.ddoc $G/dlangspec.d $(DMD ) $( DDOC_BIN )
535
+ $(DDOC_BIN_DMD ) -conf= -Df$@ $(DDOC ) ebook.ddoc $G /dlangspec.d
535
536
536
537
$G/dlangspec.zip : $G/dlangspec.html ebook.css
537
538
rm -f $@
@@ -553,8 +554,8 @@ $W/dlangspec.mobi : \
553
554
$G/dlangspec-consolidated.d : $(SPEC_DD ) ${STABLE_DMD}
554
555
$(STABLE_RDMD ) --force $(TOOLS_DIR ) /catdoc.d -o$@ $(SPEC_DD )
555
556
556
- $G/dlangspec.tex : $G/dlangspec-consolidated.d $(DMD ) $(DDOC ) spec/latex.ddoc $(NODATETIME )
557
- $(DMD ) -conf= -Df$@ $(DDOC ) spec/latex.ddoc $(NODATETIME ) $<
557
+ $G/dlangspec.tex : $G/dlangspec-consolidated.d $(DDOC_BIN ) $(DDOC ) spec/latex.ddoc $(NODATETIME )
558
+ $(DDOC_BIN_DMD ) -conf= -Df$@ $(DDOC ) spec/latex.ddoc $(NODATETIME ) $<
558
559
559
560
# Run twice to fix multipage tables and \ref uses
560
561
$W/dlangspec.pdf : $G/dlangspec.tex | $W
@@ -572,11 +573,11 @@ $W/dlangspec.html: $G/dlangspec.html | $W
572
573
# Plaintext/verbatim generation - not part of the build, demo purposes only
573
574
# ###############################################################################
574
575
575
- $G/dlangspec.txt : $G/dlangspec-consolidated.d $(DMD ) macros.ddoc plaintext.ddoc
576
- $(DMD ) -conf= -Df$@ macros.ddoc plaintext.ddoc $<
576
+ $G/dlangspec.txt : $G/dlangspec-consolidated.d $(DDOC_BIN ) macros.ddoc plaintext.ddoc
577
+ $(DDOC_BIN_DMD ) -conf= -Df$@ macros.ddoc plaintext.ddoc $<
577
578
578
- $G/dlangspec.verbatim.txt : $G/dlangspec-consolidated.d $(DMD ) verbatim.ddoc
579
- $(DMD ) -conf= -Df$@ verbatim.ddoc $<
579
+ $G/dlangspec.verbatim.txt : $G/dlangspec-consolidated.d $(DDOC_BIN ) verbatim.ddoc
580
+ $(DDOC_BIN_DMD ) -conf= -Df$@ verbatim.ddoc $<
580
581
581
582
# ###############################################################################
582
583
# Fetch the latest article from the official D blog
@@ -987,7 +988,7 @@ $G/contributors_list.ddoc: | $(STABLE_RDMD) $(TOOLS_DIR) $(INSTALLER_DIR)
987
988
# It is currently only used for the specification pages
988
989
# ###############################################################################
989
990
990
- $(DDOC_BIN ) : ddoc_preprocessor.d | $(STABLE_DMD )
991
+ $(DDOC_BIN ) : ddoc_preprocessor.d | $(STABLE_DMD ) $( DMD )
991
992
$(STABLE_RDMD ) -version=DdocOptions --build-only -g -of$@ -I$(DMD_DIR ) /src $<
992
993
993
994
# ###############################################################################
0 commit comments