diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-11 18:54:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-11 18:54:28 +0000 |
| commit | d405c7022fa949a6f0336096d32af41b44c8d6a0 (patch) | |
| tree | 1ff4f2340ad3b2bab436ef557198fc1f61aa587b /doc/meson.build | |
| parent | main: add -h,--help and -v,--version command line options (diff) | |
doc: add foot.1 man page
Diffstat (limited to 'doc/meson.build')
| -rw-r--r-- | doc/meson.build | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 00000000..b61adbc1 --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,18 @@ +scdoc = dependency('scdoc', native: true) +scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) + +foreach man_src : ['foot.1.scd'] + parts = man_src.split('.') + name = parts[-3] + section = parts[-2] + out = '@0@.@1@'.format(name, section) + + custom_target( + out, + output: out, + input: man_src, + command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.path())], + capture: true, + install: true, + install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section))) +endforeach |
