This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 258d637df374fab9fa0be779fa0e73f530a4f70e Author: xuxin19 <[email protected]> AuthorDate: Mon Sep 11 16:06:13 2023 +0800 Makefile:resolve Mac make error block Signed-off-by: xuxin19 <[email protected]> --- testing/ltp/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/ltp/Makefile b/testing/ltp/Makefile index 49e68c276..f32aab79f 100644 --- a/testing/ltp/Makefile +++ b/testing/ltp/Makefile @@ -222,7 +222,7 @@ MAINWORDS += "main(" LTP_ORIGS := $(shell find $(TESTDIR) -name *.c) ifneq ($(LTP_ORIGS),) -$(call SPLITVARIABLE,ORIGS_SPILT,$(LTP_ORIGS),200) +$(eval $(call SPLITVARIABLE,ORIGS_SPILT,$(LTP_ORIGS),200)) $(foreach BATCH, $(ORIGS_SPILT_TOTAL), \ $(foreach word, $(BLACKWORDS), $(eval BLACKLIST+=$(shell grep -lr $(word) $(ORIGS_SPILT_$(BATCH))))) \ ) @@ -232,7 +232,7 @@ $(foreach src, $(BLACKSRCS), $(eval BLACKLIST+=$(filter %$(src),$(LTP_ORIGS)))) LTP_ORIGS := $(filter-out $(BLACKLIST), $(LTP_ORIGS)) ifneq ($(LTP_ORIGS),) -$(call SPLITVARIABLE,ORIGS_SPILT,$(LTP_ORIGS),200) +$(eval $(call SPLITVARIABLE,ORIGS_SPILT,$(LTP_ORIGS),200)) $(foreach BATCH, $(ORIGS_SPILT_TOTAL), \ $(foreach word, $(MAINWORDS), $(eval LTP_MAINCSRCS+=$(shell grep -lr $(word) $(ORIGS_SPILT_$(BATCH))))) \ ) @@ -240,7 +240,7 @@ endif LTP_CSRCS := $(filter-out $(LTP_MAINCSRCS), $(LTP_ORIGS)) ifneq ($(LTP_MAINCSRCS),) -$(call SPLITVARIABLE,MAINCSRC_SPILT,$(LTP_MAINCSRCS),50) +$(eval $(call SPLITVARIABLE,MAINCSRC_SPILT,$(LTP_MAINCSRCS),50)) $(foreach BATCH, $(MAINCSRC_SPILT_TOTAL), \ $(eval PROGNAME+=$(basename $(shell echo $(MAINCSRC_SPILT_$(BATCH)) | xargs -n 1 | awk -F "[/]" '{print "ltp_"$$(NF-2)"_"$$(NF-1)"_"$$(NF)}' | sed s/-/_/g))) \ )
