Hi.
I wanted to automatically include a timestamp or incrementing version number in my debug builds to keep track of them, because I’ve got test runs running on multiple devices, and sometimes the versions diverge.
I didn’t find any predefined symbols that can serve, so I created a small script that saves a timestamp as a #define into a .h file which is included in my project, intending to let the script run as a pre-build step.
Problem: as soon as a pre-build step has been entered through the project properties, the project stops compiling.
For a full rebuild, the command changes from
to
~~~ make -k -s clean pre-build main-build
resulting in errors:
~~~ make: *** No rule to make target `pre-build'.
~~~ make: *** No rule to make target `main-build'.
The makefile contains a warning "auto-generated, do not modify", and that turns out to be there for a reason: the file is re-generated before each build, so adjusting it leads to nothing.
Does anyone have another idea for a solution?
Message was edited by: lucvdv
//added makefile editing remark//