diff options
author | Andres Freund <andres@anarazel.de> | 2023-03-23 23:08:06 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2023-03-23 23:14:31 -0700 |
commit | 069ef254f145889d15c6ce4be526ce9e05284dc6 (patch) | |
tree | 44049af23d26e9e0c38acde5582a99eb796d3254 | |
parent | 36f40ce2dc66f1a36d6a12f7a0352e1c5bf1063e (diff) | |
download | postgresql-069ef254f145889d15c6ce4be526ce9e05284dc6.tar.gz postgresql-069ef254f145889d15c6ce4be526ce9e05284dc6.zip |
meson: docs: add texinfo target
-rw-r--r-- | doc/src/sgml/meson.build | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/src/sgml/meson.build b/doc/src/sgml/meson.build index b728948af9e..157b8589e55 100644 --- a/doc/src/sgml/meson.build +++ b/doc/src/sgml/meson.build @@ -287,6 +287,39 @@ if pandoc.found() and xsltproc_bin.found() alldocs += postgres_epub endif + +## +## Experimental Texinfo targets +## + +db2x_xsltproc = find_program('db2x_xsltproc', native: true, required: false) +db2x_texixml = find_program('db2x_texixml', native: true, required: false) +makeinfo = find_program('makeinfo', native: true, required: false) + +if db2x_texixml.found() and db2x_xsltproc.found() and makeinfo.found() + postgres_texixml = custom_target('postgres.texixml', + output: 'postgres.texixml', + command: [db2x_xsltproc, '-s', 'texi', + '-g', 'output-file=postgres', + postgres_full_xml, '-o', '@OUTPUT@'], + build_by_default: false, + ) + postgres_texi = custom_target('postgres.texi', + output: 'postgres.texi', + command: [db2x_texixml, '--encoding=utf-8', postgres_texixml, + '--output-dir=@OUTDIR@'], + build_by_default: false, + ) + postgres_info = custom_target('postgres.info', + output: 'postgres.info', + command: [makeinfo, '--enable-encoding', '--no-split', '--no-validate', + postgres_texi, '-o', '@OUTPUT0@'], + build_by_default: false, + ) + alldocs += postgres_info +endif + + if docs.length() == 0 run_target('docs', command: [missing, 'xsltproc']) else |