From 184cc4a6949d21707050e92bb5f8d834a3220d50 Mon Sep 17 00:00:00 2001 From: Darshan K <35736874+darshankabariya@users.noreply.github.com> Date: Tue, 22 Jul 2025 12:06:08 +0530 Subject: [PATCH] chore: config update (#3510) --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e41b4207a..cd43e3619 100644 --- a/Makefile +++ b/Makefile @@ -53,15 +53,17 @@ endif # default target, because it's the first one that doesn't start with '.' all: | wakunode2 example2 chat2 chat2bridge libwaku -TEST_FILE := $(word 2,$(MAKECMDGOALS)) -TEST_NAME := $(wordlist 3,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) +test_file := $(word 2,$(MAKECMDGOALS)) +define test_name +$(shell echo '$(MAKECMDGOALS)' | cut -d' ' -f3-) +endef test: -ifeq ($(strip $(TEST_FILE)),) +ifeq ($(strip $(test_file)),) $(MAKE) testcommon $(MAKE) testwaku else - $(MAKE) compile-test $(TEST_FILE) $(TEST_NAME) + $(MAKE) compile-test TEST_FILE="$(test_file)" TEST_NAME="$(call test_name)" endif # this prevents make from erroring on unknown targets like "Index" %: