diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2013-05-12 16:14:25 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2013-05-12 16:35:17 +0200 |
| commit | e793178adbd7d0d2202c0ab4bc6a9fec1df8851f (patch) | |
| tree | 2fbb198e81d602c082802b8bb231d9aaee367424 | |
| parent | c0cd1b3ea7753fe2826f7a336019000df9dea96f (diff) | |
build: Generate a ChangeLog file upon "make dist".
* Makefile.am (sync-synopses): New rule, formerly `dist-hook.
(gen-ChangeLog): New rule.
(dist-hook): Depend on these two targets.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Makefile.am | 14 |
2 files changed, 17 insertions, 2 deletions
| @@ -1 +1,4 @@ | |||
| 1 | Please see the Git commit log at <https://gitorious.org/guix>. | 1 | Normally a ChangeLog is generated at "make dist" time and available in |
| 2 | source tarballs. | ||
| 3 | |||
| 4 | If not, see the Git commit log at <http://git.sv.gnu.org/cgit/guix.git/>. | ||
diff --git a/Makefile.am b/Makefile.am index 69b4af013a3..538fad32a4a 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -412,6 +412,18 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \ | |||
| 412 | --with-nix-prefix="$(NIX_PREFIX)" \ | 412 | --with-nix-prefix="$(NIX_PREFIX)" \ |
| 413 | --enable-daemon | 413 | --enable-daemon |
| 414 | 414 | ||
| 415 | dist-hook: | 415 | dist-hook: sync-synopses gen-ChangeLog |
| 416 | |||
| 417 | sync-synopses: | ||
| 416 | -$(top_builddir)/pre-inst-env $(GUILE) \ | 418 | -$(top_builddir)/pre-inst-env $(GUILE) \ |
| 417 | $(top_srcdir)/build-aux/sync-synopses.scm | 419 | $(top_srcdir)/build-aux/sync-synopses.scm |
| 420 | |||
| 421 | gen-ChangeLog: | ||
| 422 | if test -d .git; then \ | ||
| 423 | $(top_srcdir)/build-aux/gitlog-to-changelog \ | ||
| 424 | > $(distdir)/cl-t; \ | ||
| 425 | rm -f $(distdir)/ChangeLog; \ | ||
| 426 | mv $(distdir)/cl-t $(distdir)/ChangeLog; \ | ||
| 427 | fi | ||
| 428 | |||
| 429 | .PHONY: sync-synopses gen-ChangeLog | ||
