re-generate ChangeLog only if it's newer than the git index

otherwise, we'd re-generate it during 'install' as well.

note that this does not work with new-style git worktrees, where .git is
only a file - but there the log generation itself already doesn't work
anyway.
This commit is contained in:
Oswald Buddenhagen 2020-02-28 12:10:07 +01:00
parent 281a87ed89
commit a2fe8c155a

View File

@ -47,7 +47,10 @@ LOG_PL = \
print $$log."\n"; \
}
$(srcdir)/ChangeLog: log
$(srcdir)/.git/index:
$(srcdir)/ChangeLog: $(srcdir)/.git/index
$(MAKE) log
log:
@test -z "$(srcdir)" || cd $(srcdir) && \
( ! test -d .git || \