summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2015-11-28 11:45:22 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2015-11-28 11:45:22 -0600
commitbac983c63c927ceaaafa536d7283c102b562dc03 (patch)
tree4333e2f71c420cdf1f104465ab80c57e76955c2f /Makefile.am
parent5ad09886e8c3a1282c4f73e814085d545ef3ffae (diff)
download8sync-bac983c63c927ceaaafa536d7283c102b562dc03.tar.gz
build: Add `git-to-changelog' and make use of it in `Makefile.am'.
* build-aux/gitlog-to-changelog: New file, from Gnulib. * Makefile.am: (gen-ChangeLog): New rule, borrowed from Guix. (dist-hook): Depend on `gen-ChangeLog'.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index bd1587a..29a89d2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -69,3 +69,14 @@ EXTRA_DIST = \
$(TESTS) \
pre-inst-env.in \
tests/utils.scm
+
+dist-hook: gen-ChangeLog
+# gen-AUTHORS might be useful to borrow from Guix
+
+gen-ChangeLog:
+ if test -d .git; then \
+ $(top_srcdir)/build-aux/gitlog-to-changelog --since 2015-11-28 \
+ > $(distdir)/cl-t; \
+ rm -f $(distdir)/ChangeLog; \
+ mv $(distdir)/cl-t $(distdir)/ChangeLog; \
+ fi