diff options
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index e9801283f8..53d3f9b542 100644 --- a/Makefile.am +++ b/Makefile.am @@ -999,16 +999,19 @@ gen-tarball-version: echo $(SOURCE_DATE_EPOCH) > $(distdir)/.tarball-timestamp gen-ChangeLog: - $(AM_V_GEN)set -e; \ + $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \ + set -e; \ export LC_ALL=en_US.UTF-8; \ export TZ=UTC0; \ $(top_srcdir)/build-aux/gitlog-to-changelog \ > $(distdir)/ChangeLog.tmp; \ rm -f $(distdir)/ChangeLog; \ - mv $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; + mv $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \ + fi gen-AUTHORS: - $(AM_V_GEN)set -e; \ + $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \ + set -e; \ rm -f "$(distdir)/AUTHORS"; \ export LC_ALL=en_US.UTF-8; \ export TZ=UTC0; \ |