Commit cfc03d53 by Joel Brobecker Committed by Pierre-Marie de Rodat

[Ada] doc/Makefile: automatically create doc/share/_static

2019-08-21  Joel Brobecker  <brobecker@adacore.com>

gcc/ada/

	* doc/Makefile (mk_empty_dirs): New (PHONY) rule.
	(%.html, %.pdf, %.txt, %.info, %.texinfo): Add dependencies on
	mk_empty_dirs.

From-SVN: r274775
parent df2d2fe0
2019-08-21 Joel Brobecker <brobecker@adacore.com>
* doc/Makefile (mk_empty_dirs): New (PHONY) rule.
(%.html, %.pdf, %.txt, %.info, %.texinfo): Add dependencies on
mk_empty_dirs.
2019-08-21 Justin Squirek <squirek@adacore.com>
* doc/gnat_rm/implementation_defined_pragmas.rst: Modify
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment