diff options
author | Ludovic Courtès | 2012-05-29 22:03:45 +0200 |
---|---|---|
committer | Ludovic Courtès | 2012-05-29 22:03:45 +0200 |
commit | 5387ab9b13d4bba3c47f4c9fd39848f8b82f9436 (patch) | |
tree | 88c4170c139a20299e78b1ef428d17fa4df0c174 /Makefile.am | |
parent | 7da540e9d5fd194ca599b84c3f1ce690fff5b7c4 (diff) | |
download | skribilo-5387ab9b13d4bba3c47f4c9fd39848f8b82f9436.tar.gz skribilo-5387ab9b13d4bba3c47f4c9fd39848f8b82f9436.tar.lz skribilo-5387ab9b13d4bba3c47f4c9fd39848f8b82f9436.zip |
build: Generate a `ChangeLog' file upon "make dist".
* Makefile.am (gen-ChangeLog, dist-hook): New targets.
* build-aux/gitlog-to-changelog: New file, from Gnulib v0.0-6827-g39c3009.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 778792b..1584681 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,3 +3,19 @@ SUBDIRS = po src doc emacs tests ACLOCAL_AMFLAGS = -I m4 EXTRA_DIST = TODO THANKS README.Skribe ChangeLog.Skribe + +gen-ChangeLog: + if ! test -d "$(top_srcdir)/.git"; then \ + echo "\`.git' not found; \`ChangeLog' not generated" >&2; \ + elif ! git --version > /dev/null 2>&1; then \ + echo "git not found; \`ChangeLog' not generated" >&2; \ + else \ + "$(top_srcdir)/build-aux/gitlog-to-changelog" \ + > "$(distdir)/cl-t"; \ + rm -f "$(distdir)/ChangeLog"; \ + mv "$(distdir)/cl-t" "$(distdir)/ChangeLog"; \ + fi + +dist-hook: gen-ChangeLog + +.PHONY: gen-ChangeLog |