aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index c2747f4..2a5aec3 100644
--- a/wscript
+++ b/wscript
@@ -400,7 +400,8 @@ def build(bld):
if subprocess.call([ctx.env.LINKCHECKER[0], '--no-status', out]):
ctx.fatal('Documentation contains broken links')
- bld.add_post_fun(check_links)
+ if bld.cmd == 'build':
+ bld.add_post_fun(check_links)
if bld.env.BUILD_TESTS:
# Generate a compile test .c file that includes all headers