I'm using Codewarrior V5.5 with a HC12 target, but I think my question is pretty generic.
I want to be able to force a file to be re-compiled each time I re-compile my project, but I don't want the hassle of having to remember to manually "touch" that file (I'm bound to forget one time, and then my build details will be out of date!!).
Basically, I am trying to update the date and time string that is subsequently stored as the build details, this can be done by forcing the compiler to recompile a header with __TIME__ and __DATE__ defines within it. I have created a DOS batch file that will touch my file for me, but can't find any way of hooking this into the Metrowerks compile process - there must be a way, I just can't find a reference in the help file!?!
Has anyone else done this?
Thanks for your help.