From 2d2d885bd124b8ae2d3a04f3583a756029820dc0 Mon Sep 17 00:00:00 2001 From: Andreas Rottmann Date: Mon, 25 May 2015 00:10:06 +0200 Subject: 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 --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') 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 $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ -- cgit v1.2.3