From db3f8103044131c0603ec0c05c74dd6f0b06e31b Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Wed, 22 May 2024 23:40:02 +0200 Subject: [PATCH] Only build yosys-abc usage docs when ABCEXTERNAL is not set Since 0.41, when building docs with ABCEXTERNAL set, the rule for yosys-abc docs usage would attempt to build in-tree ABC. This fix this regression by only including yosys-abc in DOCS_USAGE_STDERR when ABCEXTERNAL is not set. Signed-off-by: Mary Guillemard --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cbf834007fc..55866259c0f 100644 --- a/Makefile +++ b/Makefile @@ -946,7 +946,13 @@ define DOC_USAGE_STDERR docs/source/generated/$(1): $(PROGRAM_PREFIX)$(1) docs/source/generated -$(Q) ./$$< --help 2> $$@ endef -DOCS_USAGE_STDERR := yosys-config yosys-filterlib yosys-abc +DOCS_USAGE_STDERR := yosys-config yosys-filterlib + +# The in-tree ABC (yosys-abc) is only built when ABCEXTERNAL is not set. +ifeq ($(ABCEXTERNAL),) +DOCS_USAGE_STDERR += yosys-abc +endif + $(foreach usage,$(DOCS_USAGE_STDERR),$(eval $(call DOC_USAGE_STDERR,$(usage)))) # others print to stdout