假设我在Makefile中有以下规则。test.o:test.cppfoo.hg++-c-otest.otest.cpp现在假设foo.h包含bar.h,如下所示。user$head-n5foo.h#include"bar.h"/*..*/user$如果bar.h有任何变化,是否会重新构建test.o?或者我应该在规则中特别提到bar.h如下:test.o:test.cppfoo.hbar.hg++-c-otest.otest.cpp 最佳答案 Willthetest.obebuiltagainifthereareanychange