]> git.saurik.com Git - bison.git/blobdiff - Makefile.am
build: fix gen-ChangeLog call.
[bison.git] / Makefile.am
index eef413fca9c82e610c5041cc4092144e8221fb21..d5d3db28671d8f6523478e19a24a1304ecf0d02f 100644 (file)
@@ -66,13 +66,14 @@ update-package-copyright-year:
 gen_start_date = 2012-01-16
 .PHONY: gen-ChangeLog
 gen-ChangeLog:
-       $(AM_V_GEN)if test -d $(srcdir)/.git; then              \
-         $(top_srcdir)/build-aux/gitlog-to-changelog           \
-           --strip-tab                                         \
-           --strip-cherry-picked                               \
-           --no-cluster                                        \
-           --amend=$(srcdir)/build-aux/git-log-fix             \
-           --since=$(gen_start_date) > $(distdir)/cl-t;        \
-         rm -f $(distdir)/ChangeLog;                           \
-         mv $(distdir)/cl-t $(distdir)/ChangeLog;              \
+       $(AM_V_GEN)if test -d $(srcdir)/.git; then      \
+         cl=$(distdir)/ChangeLog &&                    \
+         rm -f $$cl.tmp &&                             \
+         $(top_srcdir)/build-aux/gitlog-to-changelog   \
+           --strip-tab                                 \
+           --strip-cherry-pick                         \
+           --no-cluster                                \
+           --amend=$(srcdir)/build-aux/git-log-fix     \
+           --since=$(gen_start_date) > $$cl.tmp &&     \
+         mv -f $$cl.tmp $$cl;                          \
        fi