[LTP] [PATCH 7/7] doc/Makefile: Add dependency on metadata/ltp.json
Petr Vorel
pvorel@suse.cz
Thu Feb 6 15:34:21 CET 2025
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
NOTE: this should be applied after Andrea's work gets merged.
https://patchwork.ozlabs.org/project/ltp/patch/20250206-doc_tests_list-v5-2-52110e1421a9@suse.com/
Kind regards,
Petr
doc/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/doc/Makefile b/doc/Makefile
index c6dadfd521..dc4cee6d3d 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,6 +1,10 @@
# Copyright (c) Linux Test Project, 2024-2025
# SPDX-License-Identifier: GPL-2.0-or-later
+top_srcdir ?= ..
+
+include $(top_srcdir)/include/mk/env_pre.mk
+
PYTHON := python3
# install sphinx only if needed
@@ -10,7 +14,10 @@ INSTALL_SPHINX := $(shell $(PYTHON) -c "import sphinx" 2>/dev/null && echo "true
$(PYTHON) -m virtualenv .venv
. .venv/bin/activate && pip install -r requirements.txt && $(INSTALL_SPHINX)
-all: .venv
+${abs_top_builddir}/metadata/ltp.json:
+ $(MAKE) -C ${abs_top_builddir}/metadata
+
+all: ${abs_top_builddir}/metadata/ltp.json .venv
. .venv/bin/activate && sphinx-build -b html . html
spelling:
--
2.47.2
More information about the ltp
mailing list