I would like to have a string in my code automatically reflecting the git commit number, and show it in an “about” dialog. Here it is suggested to add the following to the makefile:
gitversion.c: .git/HEAD .git/index echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
unfortunately I don’t know enough about make to make it work, I tried to add it to compile.project.mk but without success.
Can someone suggest how to do this? (if it is possible at all with the OF makefile)