One can often see "build number" in about boxes of different applications for PC. Wouldn't it be nice if uVision had some sort of 'build counter'? It would help in tracing version numbers and show the amount of work spent for writing software.
We use a file called compileinfo.h which is 'touched' each time we compile for our release target.
char *CompileTime = __TIME__; char *CompileDate = __DATE__;
printf( "Compiled on %s at %s\n", CompileDate, CompileTime );
Rather than adding an external 'touch' command, could you not just set the 'Always Build' option for this file in this Target? I do this with a timestamp.c in every Target of every project - I haven't tried it with just one Target of a project. Is there any particular reason to restrict it to just one Target of a project, though?