问题是这个片段:
mec/crc32table.h: mec/gen_crc32table
mec/gen_crc32table > mec/crc32table.h
</code>
问问自己“如果有什么会发生什么
gen_crc32table
命令退出时出错?“停止(好)但留下了腐败
crc32table.h
(坏)。两种选择:(i)重写
gen_crc32table
所以它接受了
-o
参数; (ii)贝壳欺骗。
(一世)
mec/crc32table.h: mec/gen_crc32table
mec/gen_crc32table -o mec/crc32table.h
</code>
(ⅱ)
mec/crc32table.h: mec/gen_crc32table
mec/gen_crc32table >temp-file-with-an-obscure-name
mv temp-file-with-an-obscure-name $@
</code>
该
mv
如果不会发生
gen_crc32table
错误。