From: Joel Brobecker Date: Wed, 21 Aug 2019 08:29:27 +0000 (+0000) Subject: [Ada] doc/Makefile: automatically create doc/share/_static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfc03d536f3b4b20e0084a65e90d5a9491721100;p=gcc.git [Ada] doc/Makefile: automatically create doc/share/_static 2019-08-21 Joel Brobecker gcc/ada/ * doc/Makefile (mk_empty_dirs): New (PHONY) rule. (%.html, %.pdf, %.txt, %.info, %.texinfo): Add dependencies on mk_empty_dirs. From-SVN: r274775 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index db943199570..36d41e9ca06 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2019-08-21 Joel Brobecker + + * doc/Makefile (mk_empty_dirs): New (PHONY) rule. + (%.html, %.pdf, %.txt, %.info, %.texinfo): Add dependencies on + mk_empty_dirs. + 2019-08-21 Justin Squirek * doc/gnat_rm/implementation_defined_pragmas.rst: Modify diff --git a/gcc/ada/doc/Makefile b/gcc/ada/doc/Makefile index a2a9d7a2cb1..9a435ebbb1f 100644 --- a/gcc/ada/doc/Makefile +++ b/gcc/ada/doc/Makefile @@ -42,22 +42,26 @@ help: clean: -rm -rf $(BUILDDIR) -%.html: +.PHONY: mk_empty_dirs +mk_empty_dirs: + mkdir -p share/_static + +%.html: mk_empty_dirs $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/$*/html -%.pdf: +%.pdf: mk_empty_dirs $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/$*/pdf $(MAKE) -C $(BUILDDIR)/$*/pdf all-pdf LATEXOPTS="-interaction=nonstopmode" -%.txt: +%.txt: mk_empty_dirs $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/$*/txt $(MAKE) -C $(BUILDDIR)/$*/txt plaintext -%.info: +%.info: mk_empty_dirs $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/$*/info $(MAKE) -C $(BUILDDIR)/$*/info info -%.texinfo: +%.texinfo: mk_empty_dirs $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/$*/texinfo sed -e 's/^@dircategory/@dircategory GNU Ada Tools/g' < $(BUILDDIR)/$*/texinfo/$*.texi > $(BUILDDIR)/../../$*.texi