Suppose there is a C program that stores its version globally char*in main.c. Can buildsystem (gnu make) somehow retrieve the value of this variable during build so that the embedded executable can have the exact version name as it appears in the program?
What I would like to achieve is that, given the source:
char g_version[] = "Superprogram 1.32 build 1142";
the built system will create an executable file with the name Superprogram 1.32 build 1142.exe
source
share