From 150866015add49c0a08fd9caf2dfd8bc8984904a Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 11 Jul 2026 12:36:23 +0200 Subject: [PATCH] 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 --- make/py-defs.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/py-defs.mk b/make/py-defs.mk index 3f02d78c..b6068922 100644 --- a/make/py-defs.mk +++ b/make/py-defs.mk @@ -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),)