From 258d637df374fab9fa0be779fa0e73f530a4f70e Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Mon, 11 Sep 2023 16:06:13 +0800 Subject: [PATCH] Makefile:resolve Mac make error block Signed-off-by: xuxin19 --- 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))) \ )