From ef82bd81493bd5a4afcc169ff4c31a2c3656dafe Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 6 Jun 2013 18:32:40 -0400 Subject: [PATCH] Makefile: Set PYTHONPATH=. for make_target_table.py Avoid: $ make ... "./doc/make_target_table.py" > "doc/targets.generated.txt" Traceback (most recent call last): File "./doc/make_target_table.py", line 34, in __import__(module_name) ImportError: No module named catalyst.targets.embedded make: *** [doc/targets.generated.txt] Error 1 This also ensures that the local catalyst package takes precedence over any previously installed version. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f69e5c4..a130fb3a 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ doc/subarches.generated.txt: $(wildcard catalyst/arch/*.py) doc/make_subarch_tab ./doc/make_subarch_table_guidexml.py doc/targets.generated.txt: doc/make_target_table.py $(wildcard catalyst/targets/*.py) - "./$<" > "$@" + PYTHONPATH=. "./$<" > "$@" $(DOCS): files/%.html: doc/%.txt doc/asciidoc.conf Makefile | files a2x --conf-file=doc/asciidoc.conf --attribute="catalystversion=$(PACKAGE_VERSION)" \ -- 2.26.2