From c5be183a7338b173a8cbe3fc80d9a1648afd86a6 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 22 Jul 2017 18:14:58 +0000 Subject: [PATCH] projects.mk: Add variable proj_query_cmd proj_query_command is not a callable function, as opposed to proj_query, which now uses it. This adds the possibilty to use it multiple times in pipes. Signed-off-by: Jan Lindemann --- make/projects.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make/projects.mk b/make/projects.mk index e43d1226..d12a1905 100644 --- a/make/projects.mk +++ b/make/projects.mk @@ -15,7 +15,8 @@ MOD_SCRIPT_DIR ?= $(firstword $(wildcard $(MODDIR)/scripts $(MODDIR)/bin) # -- Query the build system about other projects: PYTHON ?= /usr/bin/python -proj_query = $(shell $(PYTHON) $(MOD_SCRIPT_DIR)/projects.py -p $(PROJECTS_DIR) -t $(TOPDIR) $(PROJECTS_PY_EXTRA_ARGS) $(1)) +proj_query_cmd = $(PYTHON) $(MOD_SCRIPT_DIR)/projects.py -p $(PROJECTS_DIR) -t $(TOPDIR) $(PROJECTS_PY_EXTRA_ARGS) +proj_query = $(shell $(proj_query_cmd) $(1)) proj_dir = $(call proj_query,proj-dir $(1)) htdocs_dir = $(call proj_query,htdocs-dir $(1))