summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-25 17:32:54 +0100
committerPhil Jones <philj56@gmail.com>2022-06-25 17:33:11 +0100
commitba9f87f88280454b8ed3801a2cf11f8a7a8b8632 (patch)
tree2eb1039b296e24ce9c883acb8b2dcbdeb50614a9 /meson.build
parent335573a628ed6ff20640c881935e0648a4819c1a (diff)
Add manpages.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build16
1 files changed, 14 insertions, 2 deletions
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