Unverified Commit a054e5af authored by Jonas Frei's avatar Jonas Frei Committed by GitHub

Don't force-build the man-pages, use option instead (#111)

* Only build man-pages and require scdoc if 'man-page' option is true Co-authored-by: 's avatarJonas Frei <8ec426b4-7173-428a-a6dc-3c520b45b0e2@wwsxrfc8.anonaddy.com>
parent a5895e46
...@@ -89,9 +89,9 @@ if get_option('fish-completions') ...@@ -89,9 +89,9 @@ if get_option('fish-completions')
endif endif
# Man pages # Man pages
man_pages = get_option('man-pages') if get_option('man-pages')
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: man_pages) scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: true)
if scdoc.found() if scdoc.found()
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)
mandir = get_option('mandir') mandir = get_option('mandir')
...@@ -118,4 +118,5 @@ if scdoc.found() ...@@ -118,4 +118,5 @@ if scdoc.found()
install_dir: '@0@/man@1@'.format(mandir, section) install_dir: '@0@/man@1@'.format(mandir, section)
) )
endforeach endforeach
endif
endif endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment