diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2020-11-14 03:02:30 -0600 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2020-11-14 03:02:30 -0600 |
commit | 9cf55a9e029e8ab4bc30d66d3781c7ce5d2ce578 (patch) | |
tree | a5c243317da5b4f8d5500c707020b54939854463 /doc | |
parent | 9a97f26c9c0f2db71d4bec605de8f449c6bc9abf (diff) | |
download | pidgin-9cf55a9e029e8ab4bc30d66d3781c7ce5d2ce578.tar.gz |
Add doc alias target when possible.
Testing Done:
Build with `ninja -C build doc` and see all docs being built.
Reviewed at https://reviews.imfreedom.org/r/216/
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/finch/meson.build | 2 | ||||
-rw-r--r-- | doc/reference/libpurple/meson.build | 2 | ||||
-rw-r--r-- | doc/reference/meson.build | 8 | ||||
-rw-r--r-- | doc/reference/pidgin/meson.build | 2 | ||||
-rw-r--r-- | doc/reference/protocols/facebook/meson.build | 2 | ||||
-rw-r--r-- | doc/reference/protocols/meson.build | 3 |
6 files changed, 15 insertions, 4 deletions
diff --git a/doc/reference/finch/meson.build b/doc/reference/finch/meson.build index e905855fca..f5cb759cc3 100644 --- a/doc/reference/finch/meson.build +++ b/doc/reference/finch/meson.build @@ -23,7 +23,7 @@ configure_file( output : 'version.xml', configuration : version_conf) -gnome.gtkdoc(DOC_MODULE, +finch_doc = gnome.gtkdoc(DOC_MODULE, main_xml : DOC_MODULE + '-docs.xml', src_dir : libfinch_inc, dependencies : libfinch_dep, diff --git a/doc/reference/libpurple/meson.build b/doc/reference/libpurple/meson.build index 44b249afd2..a61fa70488 100644 --- a/doc/reference/libpurple/meson.build +++ b/doc/reference/libpurple/meson.build @@ -54,7 +54,7 @@ content_files = [ 'ui_ops.xml', ] -gnome.gtkdoc(DOC_MODULE, +libpurple_doc = gnome.gtkdoc(DOC_MODULE, main_xml : DOC_MODULE + '-docs.xml', src_dir : libpurple_inc, dependencies : libpurple_dep, diff --git a/doc/reference/meson.build b/doc/reference/meson.build index 39e9312195..4453418e06 100644 --- a/doc/reference/meson.build +++ b/doc/reference/meson.build @@ -3,8 +3,16 @@ subdir('protocols') if ENABLE_GTK subdir('pidgin') +else + pidgin_doc = [] endif if enable_consoleui subdir('finch') +else + finch_doc = [] +endif + +if meson.version().version_compare('>=0.52.0') + alias_target('doc', libpurple_doc, protocols_doc, pidgin_doc, finch_doc) endif diff --git a/doc/reference/pidgin/meson.build b/doc/reference/pidgin/meson.build index e2c9ecf5fa..c756509d91 100644 --- a/doc/reference/pidgin/meson.build +++ b/doc/reference/pidgin/meson.build @@ -36,7 +36,7 @@ content_files = [ 'signals_gtklog.xml', ] -gnome.gtkdoc(DOC_MODULE, +pidgin_doc = gnome.gtkdoc(DOC_MODULE, main_xml : DOC_MODULE + '-docs.xml', src_dir : libpidgin_inc, dependencies : libpidgin_dep, diff --git a/doc/reference/protocols/facebook/meson.build b/doc/reference/protocols/facebook/meson.build index b827a5689a..95382c7116 100644 --- a/doc/reference/protocols/facebook/meson.build +++ b/doc/reference/protocols/facebook/meson.build @@ -17,7 +17,7 @@ content_files = [ libpurple_version_xml, ] -gnome.gtkdoc(DOC_MODULE, +facebook_doc = gnome.gtkdoc(DOC_MODULE, main_xml : DOC_MODULE + '-docs.xml', src_dir : facebook_inc, dependencies : facebook_dep, diff --git a/doc/reference/protocols/meson.build b/doc/reference/protocols/meson.build index e149d8d2b5..b81df04463 100644 --- a/doc/reference/protocols/meson.build +++ b/doc/reference/protocols/meson.build @@ -1,3 +1,6 @@ +protocols_doc = [] + if DYNAMIC_FACEBOOK subdir('facebook') + protocols_doc += facebook_doc endif |