In a makefile, I have the following line:
helper.cpp: dtds.h
Which ensures that helper.cpp is rebuilt whenever dtds.h is changed. However, I want ALL files in the project to be rebuilt if either of two other header files change, kind like this:
*.cpp: h1.h h2.h
Obviously that won't work, but I don't know the right way to get nmake to do what I want. Can someone help? I don't want to have to manually specify that each individual file depends on h1.h and h2.h.
Thanks. (I'm using nmake included with visual studio 2005.)