[Spice-devel] [cacard] build-sys: Add git-version-gen to EXTRA_DIST

Christophe Fergeau cfergeau at redhat.com
Fri Oct 9 10:31:13 PDT 2015


Without it, running autoreconf -fi from a tarball is going to spew a lot
of warnings about this missing file, and afterwards, ./configure will
generate version-less .pc files.
---
 Makefile.am | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index b29f56b..8c33d7e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -102,7 +102,11 @@ $(top_srcdir)/.version:
 	echo $(VERSION) > $@-t && mv $@-t $@
 
 BUILT_SOURCES += $(top_srcdir)/.version
-EXTRA_DIST += $(top_srcdir)/.version
+EXTRA_DIST +=				\
+	$(top_srcdir)/.version		\
+	build-aux/git-version-gen	\
+	$(NULL)
+
 gen-ChangeLog:
 	@if test -d "$(srcdir)/.git"; then \
 	  echo Generating ChangeLog... ; \
-- 
2.5.0



More information about the Spice-devel mailing list