build-sys: ensure distribution has version file

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-04-09 20:09:12 +01:00
parent 327b601ea4
commit d2b7d10dbc
2 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
/.tarball-version
/.version
/aclocal.m4
/autom4te.cache/
/autoscan.log

View file

@ -4,8 +4,14 @@ AUTOMAKE_OPTIONS = gnu
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
.tarball-version \
.version \
build-aux/git-version-gen \
m4/gnulib-cache.m4
SUBDIRS = doc lib src man tests contrib
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version