doc: fix copyright notice in AVP guide
[dpdk.git] / doc / api / meson.build
index 13fcbb8..1c48b76 100644 (file)
@@ -26,7 +26,7 @@ if doxygen.found()
                command: [generate_examples, '@INPUT@', '@OUTPUT@'],
                install: get_option('enable_docs'),
                install_dir: htmldir,
-               build_by_default: false)
+               build_by_default: get_option('enable_docs'))
 
        cdata = configuration_data()
        cdata.set('VERSION', meson.project_version())
@@ -48,9 +48,8 @@ if doxygen.found()
                command: [generate_doxygen, '@INPUT@', '@OUTPUT@', generate_css],
                install: get_option('enable_docs'),
                install_dir: htmldir,
-               build_by_default: false)
+               build_by_default: get_option('enable_docs'))
 
-       run_target('doc', command: 'true', depends: doxy_build)
-else
-       run_target('doc', command: ['echo', 'doxygen', 'not', 'found'])
+       doc_targets += doxy_build
+       doc_target_names += 'Doxygen_API'
 endif