【发布时间】:2015-06-20 12:33:31
【问题描述】:
我正在尝试通过 makefile 循环遍历特定目录中的 .c 文件。
我使用了以下代码,但它似乎不起作用:
DIR= Sources \
Sources_2
@for entry in ${DIR} ; \
do \
@for i in $${entry}/*.c ; \
do \
echo "Processing $${i}"; \
#Building Commands go here
done \
done
我收到错误:“/bin/sh: -c: line 3: syntax error near unexpected token `do'”
【问题讨论】: