From 0f59f669ac16d9a111f40340847c24d93f8166f9 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Mon, 21 Sep 2020 17:57:40 +0200 Subject: [PATCH] [meson] doc/perl.html and doc/perl-hooks.html custom targets --- doc/meson.build | 17 +++++++++++++++++ meson.build | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 doc/meson.build diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 000000000..5ad9ecd7a --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,17 @@ +configure_file(input : 'Doxyfile.in', + output : 'Doxyfile', + configuration : conf_data) + +pod2html = find_program('pod2html', required: false) + +if pod2html.found() + custom_target('perl.html', + input: ['perl.pod'], + output: ['perl.html'], + command: [pod2html, '--outfile=@OUTPUT@', '--infile=@INPUT@']) + + custom_target('perl-hooks.html', + input: ['../contrib/perl/hooks.pl'], + output: ['perl-hooks.html'], + command: [pod2html, '--outfile=@OUTPUT@', '--infile=@INPUT@']) +endif diff --git a/meson.build b/meson.build index 840ede633..902103383 100644 --- a/meson.build +++ b/meson.build @@ -707,4 +707,4 @@ configure_file(input : 'config2.h.in', subdir('po') subdir('src') subdir('contrib') -#subdir('doc') +subdir('doc')