summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 97bd5c88..c2a405a0 100644
--- a/Makefile
+++ b/Makefile
@@ -155,15 +155,14 @@ ChangeLog_files = \
.PHONY: gen-ChangeLog
gen-ChangeLog:
$(AM_V_GEN)if test -d $(top_srcdir)/.git; then \
+ rm -f $(ChangeLog_files) && \
(cd $(top_srcdir)/ && \
./gitlog-to-changelog --strip-tab \
$(gen_start_commit).. && \
- echo) >> cl-t && \
+ echo) >> ChangeLog && \
for f in $(ChangeLog_files); do \
(cd $(top_srcdir)/ && \
- git show $(gen_start_commit):$$f) >> cl-t && \
- rm -f $$f && \
- mv cl-t $$f \
+ git show $(gen_start_commit):$$f) >> $$f \
|| exit $$?; \
done; \
fi