aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-07 16:06:56 -0400
committerDavid Robillard <d@drobilla.net>2022-07-07 16:06:56 -0400
commitf34fd2a2fe637c6b7cdb086630a1f590f461cc50 (patch)
treec133dc912fd61fa3acec8e5c442f4c410d9d1a04
parentfe0ee61b27b28d6c7cf80ac8abbdb3af55f43e8b (diff)
downloadpugl-f34fd2a2fe637c6b7cdb086630a1f590f461cc50.tar.gz
pugl-f34fd2a2fe637c6b7cdb086630a1f590f461cc50.tar.bz2
pugl-f34fd2a2fe637c6b7cdb086630a1f590f461cc50.zip
Fix documentation build as a subproject
-rw-r--r--doc/c/meson.build10
-rw-r--r--doc/cpp/api/meson.build2
-rw-r--r--doc/cpp/meson.build10
3 files changed, 9 insertions, 13 deletions
diff --git a/doc/c/meson.build b/doc/c/meson.build
index f8b4626..7954776 100644
--- a/doc/c/meson.build
+++ b/doc/c/meson.build
@@ -30,9 +30,8 @@ subdir('xml')
subdir('api')
docs = custom_target(
- 'singlehtml C documentation for pugl',
- command: [sphinx_build, '-M', 'singlehtml',
- meson.current_build_dir(), meson.current_build_dir(),
+ 'singlehtml',
+ command: [sphinx_build, '-M', 'singlehtml', '@OUTDIR@', '@OUTDIR@',
'-E', '-q', '-t', 'singlehtml'],
input: [c_rst_files, c_pugl_rst, c_index_xml],
output: 'singlehtml',
@@ -41,9 +40,8 @@ docs = custom_target(
install_dir: docdir / 'pugl-0')
docs = custom_target(
- 'html C documentation for pugl',
- command: [sphinx_build, '-M', 'html',
- meson.current_build_dir(), meson.current_build_dir(),
+ 'html',
+ command: [sphinx_build, '-M', 'html', '@OUTDIR@', '@OUTDIR@',
'-E', '-q', '-t', 'html'],
input: [c_rst_files, c_pugl_rst, c_index_xml],
output: 'html',
diff --git a/doc/cpp/api/meson.build b/doc/cpp/api/meson.build
index ce462ed..9c81f6f 100644
--- a/doc/cpp/api/meson.build
+++ b/doc/cpp/api/meson.build
@@ -3,6 +3,6 @@
cpp_pugl_rst = custom_target(
'C++ API ReST Documentation',
- command: [dox_to_sphinx, '-l', 'cpp', '-f', '@INPUT@', meson.current_build_dir()],
+ command: [dox_to_sphinx, '-l', 'cpp', '-f', '@INPUT@', '@OUTDIR@'],
input: cpp_index_xml,
output: 'pugl.rst')
diff --git a/doc/cpp/meson.build b/doc/cpp/meson.build
index ec67d39..559362d 100644
--- a/doc/cpp/meson.build
+++ b/doc/cpp/meson.build
@@ -28,9 +28,8 @@ subdir('xml')
subdir('api')
docs = custom_target(
- 'singlehtml C++ documentation for pugl',
- command: [sphinx_build, '-M', 'singlehtml',
- meson.current_build_dir(), meson.current_build_dir(),
+ 'singlehtml',
+ command: [sphinx_build, '-M', 'singlehtml', '@OUTDIR@', '@OUTDIR@',
'-E', '-q', '-t', 'singlehtml'],
input: [cpp_rst_files, cpp_pugl_rst, cpp_index_xml],
output: 'singlehtml',
@@ -39,9 +38,8 @@ docs = custom_target(
install_dir: docdir / 'puglpp-0')
docs = custom_target(
- 'html C++ documentation for pugl',
- command: [sphinx_build, '-M', 'html',
- meson.current_build_dir(), meson.current_build_dir(),
+ 'html',
+ command: [sphinx_build, '-M', 'html', '@OUTDIR@', '@OUTDIR@',
'-E', '-q', '-t', 'html'],
input: [cpp_rst_files, cpp_pugl_rst, cpp_index_xml],
output: 'html',