[ci] Fix clang-santisers job for GHA change
[xapian.git] / xapian-applications / omega / docs / Makefile.am
blob39ab84ba36d0419c4d0e277a4ba66f98ae87ded3
1 ## Process this file with automake to produce Makefile.in
3 if MAINTAINER_MODE
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
7 endif
9 RSTDOCS = \
10         cgiparams.rst\
11         encodings.rst\
12         index.rst\
13         newformat.rst\
14         omegascript.rst\
15         overview.rst\
16         quickstart.rst\
17         scriptindex.rst\
18         termprefixes.rst
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)
27 endif
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
38 .rst.html:
39         $(RST2HTML) --exit-status=warning $< $@
40 endif