aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
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