From ba9f87f88280454b8ed3801a2cf11f8a7a8b8632 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sat, 25 Jun 2022 17:32:54 +0100 Subject: Add manpages. --- meson.build | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 810780b..a9af71d 100644 --- a/meson.build +++ b/meson.build @@ -140,11 +140,11 @@ if scdoc.found() sed = find_program('sed') sh = find_program('sh') mandir = get_option('mandir') - manpage = 'doc/tofi.1.scd' + output = 'tofi.1' custom_target( output, - input: manpage, + input: 'doc/tofi.1.scd', output: output, command: [ sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.path(), output) @@ -152,4 +152,16 @@ if scdoc.found() install: true, install_dir: '@0@/man1'.format(mandir) ) + + output = 'tofi.5' + custom_target( + output, + input: 'doc/tofi.5.scd', + output: output, + command: [ + sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.path(), output) + ], + install: true, + install_dir: '@0@/man5'.format(mandir) + ) endif -- cgit v1.2.3