How can I make GNU make to treat a target as modified without modifying target file (no recipe body)?
I have header file which includes another header file.
program.h:
//include guard
#include "dependencies.h"
//some actual signatures
and makefile:
program: program.o dependencies.o
g++ -o program program.o dependencies.o
program.o: program.cpp program.h
g++ -c program.cpp
dependencies.o: dependencies.cpp dependencies.h
g++ -c dependencies.cpp
program.h: dependencies.h
# I would like that this target was treated as modified after
# dependencies.h changes
In the above example when dependencies.h changes only dependencies.o is recompiled leaving program.o untouched and thus the build will probably fail. Is it possible to change this behavior?
Thanks.
Alek