diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/meson.build b/meson.build index 1e31456..beaebf2 100644 --- a/meson.build +++ b/meson.build @@ -79,21 +79,21 @@ executable( install: true ) -# scdoc = find_program('scdoc', required: get_option('man-pages')) -# if scdoc.found() -# sed = find_program('sed') -# sh = find_program('sh') -# mandir = get_option('mandir') -# manpage = 'doc/greetd-mini-greeter.1.scd' -# output = 'greetd-mini-greeter.1' -# custom_target( -# output, -# input: manpage, -# output: output, -# command: [ -# sh, '-c', '@0@ < @INPUT@ | sed "s|CSS_PATH|@1@|g;" > @2@'.format(scdoc.path(), css_location, output) -# ], -# install: true, -# install_dir: '@0@/man1'.format(mandir) -# ) -# endif +scdoc = find_program('scdoc', required: get_option('man-pages')) +if scdoc.found() + sed = find_program('sed') + sh = find_program('sh') + mandir = get_option('mandir') + manpage = 'doc/greetd-mini-wl-greeter.1.scd' + output = 'greetd-mini-wl-greeter.1' + custom_target( + output, + input: manpage, + output: output, + command: [ + sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.path(), output) + ], + install: true, + install_dir: '@0@/man1'.format(mandir) + ) +endif |