From c6795cefc5848fa09bf0646ba931a8b4db8c3944 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:05:03 +1300 Subject: [PATCH] docs: Install python requirements --- Makefile | 7 +++++-- docs/Makefile | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 93a42a963d7..de607f8ade9 100644 --- a/Makefile +++ b/Makefile @@ -971,7 +971,7 @@ docs/source/cmd/abc.rst: $(TARGETS) $(EXTRA_TARGETS) mkdir -p docs/source/cmd ./$(PROGRAM_PREFIX)yosys -p 'help -write-rst-command-reference-manual' -PHONY: docs/gen_examples docs/gen_images docs/guidelines docs/usage +PHONY: docs/gen_examples docs/gen_images docs/guidelines docs/usage docs/reqs docs/gen_examples: $(Q) $(MAKE) -C docs examples @@ -990,8 +990,11 @@ docs/usage: $(addprefix docs/source/temp/,$(DOCS_USAGE_PROGS)) docs/source/temp/%: docs/guidelines -$(Q) ./$(PROGRAM_PREFIX)$* --help > $@ 2>&1 +docs/reqs: + $(Q) $(MAKE) -C docs reqs + DOC_TARGET ?= html -docs: docs/source/cmd/abc.rst docs/gen_examples docs/gen_images docs/guidelines docs/usage +docs: docs/source/cmd/abc.rst docs/gen_examples docs/gen_images docs/guidelines docs/usage docs/reqs $(Q) $(MAKE) -C docs $(DOC_TARGET) clean: diff --git a/docs/Makefile b/docs/Makefile index c2e730fa82a..a5b2fed6b7d 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -250,3 +250,6 @@ test-macros: images: $(MAKE) -C source/_images +.PHONY: reqs +reqs: + $(PYTHON) -m pip install -r source/requirements.txt