From 36f7a408298efd1e3a47a4d62742b5134b80cee9 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 4 Dec 2010 13:47:43 +0000 Subject: build-sys: Include the .version file in the distribution tarball As per the comments in git-version-gen, the .version file that is typically generated automatically during build should be included in the tarball, so generate it in the dist-hook. This fixes a problem when running make distcheck which uses a read-only source folder and thus cannot generate the $top_srcdir/.version as part of it's build process (it uses a _build folder which is r/w) and thus cannot be built. --- Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index b8e22eae..a8a9eaac 100644 --- a/Makefile.am +++ b/Makefile.am @@ -77,6 +77,7 @@ dist-hook: ( git-changelog.perl || echo "git-changelog.perl failed." ) > ${distdir}/ChangeLog 2>&1 ; \ fi echo $(VERSION) > $(distdir)/.tarball-version + echo $(VERSION) > $(distdir)/.version .PHONY: homepage distcleancheck doxygen -- cgit