py-defs.mk: Allow inclusion without defs.mk
py-defs.mk uses the variables ECHO and SED defined in defs.mk. The complexity this introduces doesn't justify the reduced redundancy, though, so this commit defines them redundantly in py-defs.mk and to allow inclusion without prior defs.mk. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6743808000
commit
c63b3cc06f
1 changed files with 2 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ endif
|
|||
|
||||
# deduce PY_INSTALL_DIR_PY from working directory below .. python/
|
||||
ifeq ($(PY_INSTALL_DIR_PY),)
|
||||
ECHO ?= echo
|
||||
SED ?= sed
|
||||
PY_INSTALL_PKG_MOD ?= $(shell $(ECHO) $(CWD) | $(SED) 's%.*/python/%%; s%/.*%%')
|
||||
PY_INSTALL_SUB_MOD ?= $(shell $(ECHO) $(CWD) | $(SED) "s%.*/$(PY_INSTALL_PKG_MOD)\(/\|$$\)%%")
|
||||
ifneq ($(PY_INSTALL_SUB_MOD),)
|
||||
|
|
|
|||
Loading…
Reference in a new issue