public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4419] d: Update recipes for building html and pdf documentation
@ 2022-11-30 21:41 Iain Buclaw
0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2022-11-30 21:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7870100db7b755e5916144e569e80cfa19e361eb
commit r13-4419-g7870100db7b755e5916144e569e80cfa19e361eb
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Wed Nov 30 18:01:25 2022 +0100
d: Update recipes for building html and pdf documentation
gcc/d/ChangeLog:
* Make-lang.in: Only include doc/include when building documentation.
(d.html): Rename html directory to $(build_htmldir)/gdc.
Diff:
---
gcc/d/Make-lang.in | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in
index 984b1d63dcb..144d5b88483 100644
--- a/gcc/d/Make-lang.in
+++ b/gcc/d/Make-lang.in
@@ -252,16 +252,15 @@ doc/gdc.info: $(D_TEXI_FILES)
else true; fi
doc/gdc.dvi: $(D_TEXI_FILES)
- $(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
+ $(TEXI2DVI) -I $(abs_docdir)/include -o $@ $<
doc/gdc.pdf: $(D_TEXI_FILES)
- $(TEXI2PDF) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
+ $(TEXI2PDF) -I $(abs_docdir)/include -o $@ $<
-$(build_htmldir)/d/index.html: $(D_TEXI_FILES)
+$(build_htmldir)/gdc/index.html: $(D_TEXI_FILES)
$(mkinstalldirs) $(@D)
rm -f $(@D)/*
- $(TEXI2HTML) -I $(gcc_docdir) -I $(gcc_docdir)/include \
- -I $(srcdir)/d -o $(@D) $<
+ $(TEXI2HTML) -I $(gcc_docdir)/include -I $(srcdir)/d -o $(@D) $<
.INTERMEDIATE: gdc.pod
@@ -276,7 +275,7 @@ d.rest.encap:
d.info: doc/gdc.info
d.dvi: doc/gdc.dvi
d.pdf: doc/gdc.pdf
-d.html: $(build_htmldir)/d/index.html
+d.html: $(build_htmldir)/gdc/index.html
d.srcinfo: doc/gdc.info
-cp -p $^ $(srcdir)/doc
d.srcextra:
@@ -340,10 +339,10 @@ d.install-dvi: doc/gdc.dvi
$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/gcc/$$f"; \
done
-d.install-html: $(build_htmldir)/d
+d.install-html: $(build_htmldir)/gdc
@$(NORMAL_INSTALL)
test -z "$(htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(htmldir)"
- @for p in $(build_htmldir)/d; do \
+ @for p in $(build_htmldir)/gdc; do \
if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
f=$(html__strip_dir) \
if test -d "$$d$$p"; then \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-30 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 21:41 [gcc r13-4419] d: Update recipes for building html and pdf documentation Iain Buclaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).