Makefile:resolve Mac make error block
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
fc5351b4b9
commit
258d637df3
@ -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))) \
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user