eclipse - GNU Make Incremental Build: Force rebuild of specific file -


i'm using eclipse (juno) + cdt on windows 7 drive gcc, automatic makefile generation. worked great until used gcc's __date__ , __time__ preprocessor macros add build date/timestamp in project configuration header file.

on clean build, these macros work great - on incremental build, make doesn't rebuild associated object file; jumps straight linking.

i tried doing windows equivalent of touch pre-build step (described here: https://stackoverflow.com/questions/51435/windows-version-of-the-unix-touch-command) make still skips file. tried "touch" source file includes header; still no dice.

how can tell make rebuild files depend on particular header, on incremental build?

mark header .phony. ensure considered not date:

.phony: particular_header.h 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -