Skip to content

Commit

Permalink
Add man-pages option like swaywm/sway@ba16f16e4d5a
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeich authored and emersion committed Feb 20, 2019
1 parent 4e344aa commit d2f908e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(
'c',
version: '1.0.1',
license: 'MIT',
meson_version: '>=0.43.0',
meson_version: '>=0.48.0',
default_options: [
'c_std=c11',
'warning_level=2',
Expand Down Expand Up @@ -43,7 +43,7 @@ executable(
install: true,
)

scdoc = find_program('scdoc', required: false)
scdoc = find_program('scdoc', required: get_option('man-pages'))

if scdoc.found()
sh = find_program('sh')
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')

0 comments on commit d2f908e

Please sign in to comment.