diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-06-02 12:19:10 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-06-02 12:19:36 -0600 |
| commit | 3ea47a9ddce3fb5aa6d4a3996461ba285e938dad (patch) | |
| tree | bc3694f59db38d0fe677e8b5094de685eb22332a /mk | |
| parent | 3ca4cd68d70a32bd20380dc21ae9d9866f6c0866 (diff) | |
Diffstat (limited to 'mk')
| -rw-r--r-- | mk/cocotb.mk | 22 | ||||
| -rw-r--r-- | mk/tools.mk | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/mk/cocotb.mk b/mk/cocotb.mk index 240d808..e1289f6 100644 --- a/mk/cocotb.mk +++ b/mk/cocotb.mk @@ -1,9 +1,9 @@ -targets += pydoc test +targets += pdoc test target/test/prepare = $(prepare_verilator_target) cocotb_modules = $(call per_target,cocotb_modules) -pydoc_modules = $(call per_target,pydoc_modules) +pdoc_modules = $(call per_target,pdoc_modules) cocotb_pythonpath_decl = PYTHONPATH="$(subst $(space),:,$(strip $(cocotb_pythonpath)) $$PYTHONPATH)" @@ -20,13 +20,13 @@ define cocotb_setup_common endif endef -define target/pydoc/setup +define target/pdoc/setup $(cocotb_setup_common) - $$(call target_var,pydoc_modules) := $$(strip $$(core_info/$$(rule_top)/pydoc_modules)) + $$(call target_var,pdoc_modules) := $$(strip $$(core_info/$$(rule_top)/pdoc_modules)) - ifeq (,$$(pydoc_modules)) - $$(error core '$$(rule_top)' has no modules for pydoc to cover) + ifeq (,$$(pdoc_modules)) + $$(error core '$$(rule_top)' has no modules for pdoc to cover) endif endef @@ -41,13 +41,13 @@ define target/test/setup -lcocotbvpi_verilator -lgpi -lcocotb -lgpilog -lcocotbutils $$(cocotb_libpython) endef -define target/pydoc/rules - .PHONY: $$(rule_top_path)/pydoc +define target/pdoc/rules + .PHONY: $$(rule_top_path)/pdoc - $$(rule_top_path)/pydoc: | $$(obj) - $$(call run,PYDOC) cd $$(obj) && $$(cocotb_pythonpath_decl) $$(PYDOC3) -w $$(pydoc_modules) + $$(rule_top_path)/pdoc: | $$(obj) + $$(call run,PDOC) cd $$(obj) && $$(cocotb_pythonpath_decl) $$(PDOC3) --html $$(pdoc_modules) - $(call target_entrypoint,$$(rule_top_path)/pydoc) + $(call target_entrypoint,$$(rule_top_path)/pdoc) endef define target/test/rules diff --git a/mk/tools.mk b/mk/tools.mk index 177b956..5e4b87e 100644 --- a/mk/tools.mk +++ b/mk/tools.mk @@ -5,7 +5,7 @@ define find_tools_lazy $(call find_command_lazy,ninja,NINJA) $(call find_command_lazy,peakrdl,PEAKRDL) $(call find_command_lazy,pkg-config,PKG_CONFIG) - $(call find_command_lazy,pydoc3,PYDOC3) + $(call find_command_lazy,pdoc3,PDOC3) $(call find_command_lazy,python3,PYTHON3) $(call find_command_lazy,qsys-generate,QSYS_GENERATE) $(call find_command_lazy,quartus,QUARTUS) |
