2018-09-11 20:42:36 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
|
|
|
|
|
2018-09-20 13:22:08 +00:00
|
|
|
doc_targets = []
|
|
|
|
doc_target_names = []
|
2018-09-11 20:42:36 +00:00
|
|
|
subdir('api')
|
2018-09-20 13:22:08 +00:00
|
|
|
subdir('guides')
|
|
|
|
|
|
|
|
if doc_targets.length() == 0
|
2021-04-20 10:22:23 +00:00
|
|
|
message = 'No docs targets found'
|
2018-09-20 13:22:08 +00:00
|
|
|
else
|
2021-04-20 10:22:23 +00:00
|
|
|
message = 'Building docs:'
|
2018-09-20 13:22:08 +00:00
|
|
|
endif
|
|
|
|
run_target('doc', command: ['echo', message, doc_target_names],
|
2021-04-20 10:22:23 +00:00
|
|
|
depends: doc_targets)
|