Message ID | 20230930202413.2528178-1-giulio.benetti@benettiengineering.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | libtracefs: add option to disable documentation | expand |
On Sat, 30 Sep 2023 22:24:13 +0200 Giulio Benetti <giulio.benetti@benettiengineering.com> wrote: Same here (from my reply to the libtraceevent patch). Thanks, -- Steve > Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> > --- > meson.build | 3 +++ > meson_options.txt | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/meson.build b/meson.build > index 9d42d78..f1e492e 100644 > --- a/meson.build > +++ b/meson.build > @@ -39,6 +39,8 @@ if cunit_dep.found() > subdir('utest') > endif > subdir('samples') > + > +if get_option('doc') > subdir('Documentation') > > custom_target( > @@ -46,3 +48,4 @@ custom_target( > output: 'docs', > depends: [html, man], > command: ['echo']) > +endif > diff --git a/meson_options.txt b/meson_options.txt > index 1d92c28..5533a88 100644 > --- a/meson_options.txt > +++ b/meson_options.txt > @@ -14,3 +14,5 @@ option('man-bold-literal', type : 'boolean', value : false, > description : 'enable bold literals') > option('docbook-suppress-sp', type : 'boolean', value : false, > description : 'docbook suppress sp') > +option('doc', type : 'boolean', value: true, > + description : 'produce documentation')
diff --git a/meson.build b/meson.build index 9d42d78..f1e492e 100644 --- a/meson.build +++ b/meson.build @@ -39,6 +39,8 @@ if cunit_dep.found() subdir('utest') endif subdir('samples') + +if get_option('doc') subdir('Documentation') custom_target( @@ -46,3 +48,4 @@ custom_target( output: 'docs', depends: [html, man], command: ['echo']) +endif diff --git a/meson_options.txt b/meson_options.txt index 1d92c28..5533a88 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -14,3 +14,5 @@ option('man-bold-literal', type : 'boolean', value : false, description : 'enable bold literals') option('docbook-suppress-sp', type : 'boolean', value : false, description : 'docbook suppress sp') +option('doc', type : 'boolean', value: true, + description : 'produce documentation')
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> --- meson.build | 3 +++ meson_options.txt | 2 ++ 2 files changed, 5 insertions(+)