在makefile中运行grep命令出现错误

问题遇到的现象和发生背景

在makfile中运行grep会出现错误,直接在终端命令行中运行grep则不会出现错误

问题相关代码,请勿粘贴截图
result:
    @echo ----------------------------------result of simulation------------------------------------
    @echo ----------------------------------result of simulation PASSED----------------------------------------
    @grep -E -e "---- SIMULATION PASSED ----" $(LOG_DIR)/*.log -nr
    @echo  "                                                                                                        "
    @echo ----------------------------------result of simulation FAILED----------------------------------------
    @echo  "                                                                                                        "
    @grep -E -e "---- SIMULATION FAILED ----" $(LOG_DIR)/*.log -nr
    @echo ----------------------------------result of simulation SKIPPED---------------------------------------
    @grep -E -e "---- SIMULATION SKIPPED ----" $(LOG_DIR)/*.log -nr
    @echo  "                                                                                  
运行结果及报错内容

img

----------------------------------result of simulation FAILED----------------------------------------

make[1]: *** [result] Error 1
make[1]: Leaving directory `/project/CU0103PRE/users/cjianjun/cu0801_env/andes_data/improve/andes_vip/patterns/samples/script/MKlist'

我的解答思路和尝试过的方法
我想要达到的结果