From 10e89561e92af9c154160dbd20b75bca47cb2d22 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 16 Mar 2022 09:03:48 +0900 Subject: [PATCH] meson: minor code refactoring for option of documentation This commit arranges subdirectory inclusion for documentation. Signed-off-by: Takashi Sakamoto --- doc/meson.build | 4 +--- meson.build | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/meson.build b/doc/meson.build index b7c4082..ead14c4 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -1,3 +1 @@ -if get_option('doc') - subdir('reference') -endif +subdir('reference') diff --git a/meson.build b/meson.build index db6316f..f1ed032 100644 --- a/meson.build +++ b/meson.build @@ -8,4 +8,7 @@ gnome = import('gnome') subdir('src') subdir('tests') -subdir('doc') + +if get_option('doc') + subdir('doc') +endif -- 2.47.3