diff --git a/meson.build b/meson.build index 44b4303..0ceb491 100644 --- a/meson.build +++ b/meson.build @@ -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', @@ -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') diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..e40a23d --- /dev/null +++ b/meson_options.txt @@ -0,0 +1 @@ +option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')