summaryrefslogtreecommitdiff
path: root/docs/reference/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/meson.build')
-rw-r--r--docs/reference/meson.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index aebc8b9..70c2e1b 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -2,7 +2,7 @@
# Input: project_build_root, project_source_root, cairomm_pcname,
# build_documentation, source_h_files, install_datadir, python3,
-# doc_reference_py
+# doc_reference_py, can_add_dist_script
# Output: install_docdir, install_devhelpdir, book_name, tag_file
# There are no built source files in cairomm.
@@ -113,9 +113,8 @@ meson.add_install_script(
docinstall_flags
)
-if not meson.is_subproject()
+if can_add_dist_script
# Distribute built files and files copied by mm-common-get.
- # (add_dist_script() is not allowed in a subproject)
meson.add_dist_script(
python3.path(), doc_reference_py, 'dist_doc',
doctool_dir,