Skip to content

Commit

Permalink
meson: build and install the libpsl.3 manpage
Browse files Browse the repository at this point in the history
Followup to #168.

Fixes #136
  • Loading branch information
eli-schwartz committed Dec 25, 2023
1 parent a1f32ce commit 141d54a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/libpsl/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if get_option('docs')
output : 'version.xml',
configuration : cdata)

gnome.gtkdoc('libpsl',
docs = gnome.gtkdoc('libpsl',
main_sgml: 'libpsl-docs.sgml',
src_dir: [
'src',
Expand All @@ -17,4 +17,16 @@ if get_option('docs')
'--ignore-decorators=G_GNUC_PSL_UNUSED',
],
install: true)

man = custom_target(
output: 'libpsl.3',
command: [
'xsltproc', '-nonet',
'--output', '@OUTPUT@',
'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
meson.current_build_dir() / 'xml/libpsl.xml',
],
depends: docs,
install: true,
install_dir: get_option('mandir') / 'man3')
endif

0 comments on commit 141d54a

Please sign in to comment.