Calculate version string from configure.ac at compile time.

Also bump version from T.1.0-80 to T.81.0, as the leading 1.0 was useless.
This commit is contained in:
Felicity Tarnell 2014-03-05 15:28:24 +00:00
parent 5db1e9cdbb
commit 66c12e8e73
5 changed files with 29 additions and 13 deletions

View file

@ -13,8 +13,8 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
tts: ${OBJS}
${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} -o tts ${LIBS} @CURSES_LIB@
tts: ${OBJS} vers.o
${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} vers.o -o tts ${LIBS} @CURSES_LIB@
install:
${INSTALL} -d -m 0755 ${bindir}
@ -23,5 +23,8 @@ install:
.c.o:
${CC} ${CPPFLAGS} ${CFLAGS} -c $<
vers.c: vers.c.sh configure.ac
sh @top_srcdir@/vers.c.sh @top_srcdir@/configure.ac
clean:
rm -f tts *.o