@@ -45,10 +45,13 @@ if cunit_dep.found()
subdir('utest')
endif
subdir('samples')
-subdir('Documentation')
-custom_target(
- 'docs',
- output: 'docs',
- depends: [html, man],
- command: ['echo'])
+if get_option('docs')
+ subdir('Documentation')
+
+ custom_target(
+ 'docs',
+ output: 'docs',
+ depends: [html, man],
+ command: ['echo'])
+endif
@@ -4,6 +4,10 @@
option('plugindir', type : 'string',
description : 'set the plugin dir')
+
+option('docs', type : 'boolean', value: true,
+ description : 'build documentation')
+
option('htmldir', type : 'string', value : 'share/doc/libtraceevent-doc',
description : 'directory for HTML documentation')
option('asciidoctor', type : 'boolean', value: false,