build: keep --version strictly up to date
authorJim Meyering <meyering@redhat.com>
Wed, 7 Apr 2010 06:52:09 +0000 (08:52 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 7 Apr 2010 07:22:31 +0000 (09:22 +0200)
commita492d87510d8bed92f742f3111ca6a4f3a71e58e
tree767714d213d8a4d76f11223bf183d6c7394cab89
parentd09391240a38692849cb3dce672b68f6eb755b57
build: keep --version strictly up to date

Before this change, in development, gzip's --version output could lag
behind reality by a couple deltas or by a "-dirty" suffix.  That would
lead to spurious failure of the new --version-$VERSION PATH cross-check.
* Makefile.am (version.c, version.h): New rules.
(BUILT_SOURCES): Set/append.
(noinst_LIBRARIES, noinst_libver_a_SOURCES): Define.
(gzip_LDADD): Add libver.a.
(DISTCLEANFILES): Define.
* gzip.c (license): Use Version, not VERSION.
Makefile.am
gzip.c