py-path|ldlibpath.mk: Space-separate JW_PKG_XXX_PATH
The following variables contain colons as path-separators:
- JW_PKG_PYTHON_PATH - JW_PKG_EXE_PATH - JW_PKG_LD_LIBRARY_PATH
This commit makes them use spaces instead, so they can be more easily amended by Makefiles using them. Also define them in a more uniform way, and use the newly introduced PREREQ_RUN variable to fill them, which in turn can also be appended to before that.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2855fe636d
commit
68d740764a
2 changed files with 8 additions and 7 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# -- PYTHONPATH
|
||||
PYTHONPATH_ENV := $(PYTHONPATH)
|
||||
JW_PKG_PYTHON_PATH_PREREQ += $(PROJECT)
|
||||
ifeq ($(origin JW_PKG_PYTHON_PATH),undefined)
|
||||
JW_PKG_PYTHON_PATH := $(call proj_query, pythonpath $(PROJECT))
|
||||
JW_PKG_PYTHON_PATH := $(shell $(JW_PKG_PY) --topdir-format absolute projects pythonpath --delimiter ' ' $(PROJECT) $(PREREQ_RUN))
|
||||
endif
|
||||
export PYTHONPATH := $(JW_PKG_PYTHON_PATH)
|
||||
export PYTHONPATH := $(subst $(space),:,$(JW_PKG_PYTHON_PATH))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue