Hi all,
I implemented a new idea for program's version.
In src/bin/Makefile.am:
internal_version.c: ${top_srcdir}/PROGRAM_VERSION
${top_srcdir}/vtempl.pl $(component) $(VERSION) < $(templ) > $@
training_SOURCES = training.c internal_version.c
The vtempl.pl Perl program takes a template as input and filter it to
produce the internal_version.c source file.
Each time the PROGRAM_VERSION file will be changed, the new source file
will be regenerated, then the build system will recompile it, and
relink the program.
Comments are welcome.
Best regards,
Michel