]> git.tuebingen.mpg.de Git - paraslash.git/commit
Introduce version.c to limit recompilation on version changes.
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Apr 2013 12:23:45 +0000 (14:23 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 16:29:03 +0000 (18:29 +0200)
commit06b3e7bc1b04def7488a5c5cd65de00aca655612
treeaf948f0db081e96d1ef8cc0d931005fa45ec6884
parent75feacbafa2a1fe258f85963205b8c28a976badc
Introduce version.c to limit recompilation on version changes.

Currently version.h includes git-version.h which changes whenever
a different commit is checked out or the working tree becomes dirty
because a file has been modified. Consequently, all .c files that
include this header must be recompiled in this case.

To limit the number of recompilations, this commit introduces
version.c, which contains functions that return the various types of
the version string. It is now the only file that includes version.h,
so only version.o must be rebuilt if git-version.h changes.

This also adds the build date, OS and CC version to the version output.
17 files changed:
afh.c
audioc.c
audiod.c
client.c
client_common.c
command.c
configure.ac
error.h
fade.c
filter.c
gui.c
play.c
recv.c
server.c
version.c [new file with mode: 0644]
version.h
write.c