summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-03-24 08:54:48 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-03-24 08:54:48 +0100
commit163a663518f33bab48b28431972e580b366b4d49 (patch)
treef518ffabaca4a0b93f0103d617e803792d3b0b43 /Makefile.am
parent1b3a8d5ad2ea2f099d514d9dd51ebf926a628076 (diff)
parentdd0000f7e25abe6c28d4329d324fd7fcab54094f (diff)
Merge branch 'release/debian/1.2-1'HEADdebian/1.2-1master
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am23
1 files changed, 22 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8c052759..6083de7a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,8 @@ SUBDIRS = doc gnulib-local lib tests
EXTRA_DIST = \
version.sh BUGS DEPENDENCIES HACKING JOIN-GNU \
autogen.sh \
- build-aux/join-v-1 build-aux/texi2html build-aux/run-test
+ build-aux/join-v-1 build-aux/texi2html build-aux/run-test \
+ build-aux/git-log-fix
# Allow users to use "gnulib-tool --update".
@@ -39,3 +40,23 @@ EXTRA_DIST += woe32dll/export.h
# Windows support.
EXTRA_DIST += INSTALL.windows build-aux/windres-options
+
+
+# Generate ChangeLog during "make dist".
+
+dist-hook: gen-ChangeLog
+
+gen_start_date = 2023-09-10
+.PHONY: gen-ChangeLog
+gen-ChangeLog:
+ $(AM_V_GEN)if test -d .git; then \
+ log_fix="$(srcdir)/build-aux/git-log-fix"; \
+ test -e "$$log_fix" \
+ && amend_git_log="--amend=$$log_fix" \
+ || amend_git_log=; \
+ $(top_srcdir)/build-aux/gitlog-to-changelog \
+ $$amend_git_log --no-cluster --since=$(gen_start_date) -- . \
+ > "$(distdir)/ChangeLog-t" \
+ && rm -f "$(distdir)/ChangeLog" \
+ && mv "$(distdir)/ChangeLog-t" "$(distdir)/ChangeLog"; \
+ fi