build: Fix "make distcheck"

Running "make distcheck" failed trying to generate ".version" into the
read-only unpacked source directory. Actually shipping ".version" in the
tarball fixes that.

The error manifested as:

  make[1]: Entering directory '/tmp/build/libosmo-sccp-0.0.6.3.24-758d/_build'
  echo 0.0.6.3.24-758d > ../.version-t && mv ../.version-t ../.version
  /bin/bash: ../.version-t: Permission denied
  Makefile:807: recipe for target '../.version' failed
This commit is contained in:
Andreas Rottmann 2015-05-25 00:10:06 +02:00 committed by Holger Hans Peter Freyther
parent 6334e3bcfd
commit 2d2d885bd1
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ SUBDIRS = include src tests
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libosmo-sccp.pc libosmo-mtp.pc
EXTRA_DIST = .version
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@