- if test -f "$(top_srcdir)/doc/$@"; then \
- cp "$(top_srcdir)/doc/$@" "$@" ; \
- else \
- y="$$(echo "$@" | sed -e 's,ChangeLog-,,')" ; \
- git --git-dir=$(top_srcdir)/.git log \
+ if test -d "$(top_srcdir)/.git"; then \
+ y="$@"; y="$${y##ChangeLog-}" ; \
+ git --git-dir="$(top_srcdir)/.git" log \