aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-07 17:36:05 +0100
committerDavid Robillard <d@drobilla.net>2020-03-07 17:36:05 +0100
commitc603be2429f8260e147cde4d9bf808503430d467 (patch)
tree44d9074b175e3861759aff9fbfe111998c7d4116
parent0080c435932349af4ed6e8ca8f4f09d5c3d71845 (diff)
downloadlv2-c603be2429f8260e147cde4d9bf808503430d467.tar.xz
Fix building documentation as a subproject
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index 678e9b0..9dcfbe1 100644
--- a/wscript
+++ b/wscript
@@ -318,7 +318,7 @@ def build(bld):
if bld.env.DOCS or bld.env.ONLINE_DOCS:
# Copy spec files to build dir
for spec in specs:
- srcpath = spec.srcpath()
+ srcpath = spec.path_from(bld.path)
basename = os.path.basename(srcpath)
full_path = spec_map[basename]
name = 'lv2core' if basename == 'core' else basename
@@ -327,7 +327,7 @@ def build(bld):
bld(features = 'subst',
is_copy = True,
- source = os.path.join(spec.srcpath(), name + '.ttl'),
+ source = os.path.join(srcpath, name + '.ttl'),
target = path + '.ttl')
# Copy stylesheets to build directory