# HG changeset patch # User John W. Eaton # Date 1437068651 14400 # Node ID 9df3feddcf22150dd1452f5d855a34c68c46b1ff # Parent 84ca63c8a0383f2336e409afaad7a64030c2c9d3 only generate ChangeLog if building from hg archive * Makefile.am (changelog-from-hg-log): Don't attempt to generate ChangeLog file unless $(srcdir) contains a .hg directory. diff -r 84ca63c8a038 -r 9df3feddcf22 Makefile.am --- a/Makefile.am Thu Jul 16 16:57:30 2015 +0100 +++ b/Makefile.am Thu Jul 16 13:44:11 2015 -0400 @@ -196,13 +196,15 @@ @$(gdbinit_install_rule) define changelog-from-hg-log - rm -f $@-t $@ && \ - ( cd $(srcdir); \ - hg log --style=build-aux/changelog.tmpl --prune=b0e60ad4ae26 --only-branch=`hg branch`; \ - echo ""; \ - echo "See the files in the directory etc/OLD-ChangeLogs for changes before 2011-04-19"; \ - ) > $@-t && \ - mv $@-t $@ + rm -f $@-t && \ + cd $(srcdir) && \ + if [ -d .hg ]; then \ + ( hg log --style=build-aux/changelog.tmpl --prune=b0e60ad4ae26 --only-branch=`hg branch`; \ + echo ""; \ + echo "See the files in the directory etc/OLD-ChangeLogs for changes before 2011-04-19"; \ + ) > $@-t && \ + mv $@-t $@; \ + fi endef ChangeLog: