path: root/Makefile.am
diff options
authorAndreas Rottmann <a.rottmann@gmx.at>2015-05-25 00:10:06 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-06-19 21:05:52 +0200
commit2d2d885bd124b8ae2d3a04f3583a756029820dc0 (patch)
treeb8a86d088bb7faf0baaf72f91c10e26b25c3130c /Makefile.am
parent6334e3bcfd0c52d18ae3fc2d03e25c18135e835f (diff)
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-' echo > ../.version-t && mv ../.version-t ../.version /bin/bash: ../.version-t: Permission denied Makefile:807: recipe for target '../.version' failed
Diffstat (limited to 'Makefile.am')
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index e300b31..534fdc2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
echo $(VERSION) > $@-t && mv $@-t $@