summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLudovic Courtès2012-05-29 22:15:32 +0200
committerLudovic Courtès2012-05-29 22:15:32 +0200
commitd5c78fde59e23979079a8f28e30b857f22eccf78 (patch)
treefd56c5e4a672ff1188d4e1841768642f68b61156 /Makefile.am
parent5387ab9b13d4bba3c47f4c9fd39848f8b82f9436 (diff)
downloadskribilo-d5c78fde59e23979079a8f28e30b857f22eccf78.tar.gz
skribilo-d5c78fde59e23979079a8f28e30b857f22eccf78.tar.lz
skribilo-d5c78fde59e23979079a8f28e30b857f22eccf78.zip
build: Use Gnulib's `git-version-gen'.
* configure.ac: Use `build-aux/git-version-gen' to generate the version string. Remove Automake's `check-news' option. * Makefile.am ($(top_srcdir)/.version, gen-tarball-version): New targets. (dist-hook): Depend on `gen-tarball-version'. (EXTRA_DIST): Add $(top_srcdir)/.version. * build-aux/git-version-gen: New file, from Gnulib v0.0-6827-g39c3009.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 1584681..592a8b7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,6 +16,12 @@ gen-ChangeLog:
mv "$(distdir)/cl-t" "$(distdir)/ChangeLog"; \
fi
-dist-hook: gen-ChangeLog
+EXTRA_DIST += $(top_srcdir)/.version
+$(top_srcdir)/.version:
+ echo $(VERSION) > "$@-t" && mv "$@-t" "$@"
+gen-tarball-version:
+ echo "$(VERSION)" > "$(distdir)/.tarball-version"
-.PHONY: gen-ChangeLog
+dist-hook: gen-ChangeLog gen-tarball-version
+
+.PHONY: gen-ChangeLog gen-tarball-version