Hopefully I've chosen the right forum for this question:
All firmware I build includes a version number that can somehow be read by the user at runtime. In case I forget to update the version number, I use the __DATE__ macro to force a new version number at every build. The problem with this is that I must somehow force the file containing my version number to be rebuilt every time make is called (or I hit F7 in AVR Studio).
Is there some way to force GCC or just AVR Studio to always rebuild a file? Or perhaps there's a clever way to achieve my goal without all that mess.
Perferably, this can be done without me having to maintain my own Makefile (thus letting AVR Studio handle it for me).