Generate empty ChangeLog if no .git is available.
When making dist from a git snapshot without repo available make dist would fail to find ChangeLog. Generate empty ChangeLog if no ChangeLog is already present and repo is not available. Reported by: Andrei Borzenkov <arvidjaar@gmail.com>
This commit is contained in:
parent
14c9a72039
commit
b8f537199a
1 changed files with 2 additions and 0 deletions
|
@ -447,6 +447,8 @@ ChangeLog: FORCE
|
||||||
if test -d $(top_srcdir)/.git; then \
|
if test -d $(top_srcdir)/.git; then \
|
||||||
$(gitlog_to_changelog) --srcdir=$(top_srcdir) --since=$(changelog_start_date) > '$@.tmp'; \
|
$(gitlog_to_changelog) --srcdir=$(top_srcdir) --since=$(changelog_start_date) > '$@.tmp'; \
|
||||||
rm -f '$@'; mv '$@.tmp' '$@'; \
|
rm -f '$@'; mv '$@.tmp' '$@'; \
|
||||||
|
else \
|
||||||
|
touch $@; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EXTRA_DIST += ChangeLog ChangeLog-2015
|
EXTRA_DIST += ChangeLog ChangeLog-2015
|
||||||
|
|
Loading…
Reference in a new issue