meson: only run doxygen when building from git
authorEli Schwartz <eschwartz93@gmail.com>
Wed, 19 Oct 2022 22:08:18 +0000 (18:08 -0400)
committerColin Clark <colin.clark@cclark.uk>
Thu, 20 Oct 2022 11:11:46 +0000 (12:11 +0100)
It uses git commands.

doc/meson.build

index f8fa523..f2f5043 100644 (file)
@@ -27,7 +27,7 @@ endif
 install_subdir(destdir, install_dir : helpdir, exclude_directories : 'lua-api/latex')
 
 doxygen = find_program('doxygen', required : false)
-if doxygen.found()
+if doxygen.found() and running_from_git
     srcdir = join_paths(meson.source_root())
     destdir = join_paths(meson.build_root(), 'doc', 'html', 'lua-api')