summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2016-12-15 10:19:54 +0100
committerThomas Schwinge <thomas@codesourcery.com>2016-12-17 00:25:15 +0100
commit5e2bbd8ae1229d55d18d46ed697c0aba3a191b35 (patch)
treefa6bb8c5eb82ada3704332c8bca55012071e2432 /Makefile
parent1f89580a1e8f3ca21f5b6780fce0a1aebaaa2c7f (diff)
* Makefile (gen-ChangeLog): Remove ChangeLog files first.
Diffstat (limited to 'Makefile')
-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