我已经删除了重要的行:
SHELL := /bin/bash
leaks: build_eagle_test
grep EagleMemory_Allocate -r eagle | perl -nle 'm/"(.*)"/; print $1' | sort | uniq > leaks.alloc.tmp
grep "EagleMemory_Mock(" -r eagle_test | perl -nle 'm/"(.*)"/; print $1' | sort | uniq > leaks.alloc_test.tmp
当我在 bash 中运行这些行时没问题。但是从 make 文件中它只将管道输入grep
到输出文件中(实际上忽略了中间的阶段......)