1 ## Process this file with automake to produce Makefile.in
4 # Export these so that we run the locally installed autotools when building
5 # from a bootstrapped git tree.
6 export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
20 RSTHTML = $(RSTDOCS:.rst=.html)
22 # Files which should be put in the distribution by automake
23 EXTRA_DIST = $(RSTDOCS) $(GENERATED_RST)
25 if !MAINTAINER_NO_DOCS
26 dist_doc_DATA = $(RSTHTML)
29 GENERATED_RST = inc/ignored.rst inc/mimetypes.rst
30 MAINTAINERCLEANFILES = $(RSTHTML) $(GENERATED_RST)
32 if DOCUMENTATION_RULES
33 overview.html: overview.rst $(GENERATED_RST)
34 ## docutils seems to lack any sort of "include path".
35 perl -pe 'if (/^\.\.\s*include::\s*(\S+)/) {local $$/=undef;open I,"<",$$1 or open I,"<","$(srcdir)/$$1";$$_=<I>}' '$(srcdir)/overview.rst' |\
36 $(RST2HTML) --exit-status=warning - overview.html
39 $(RST2HTML) --exit-status=warning $< $@