comparison Makefile.am @ 20394:9df3feddcf22

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.
author John W. Eaton <jwe@octave.org>
date Thu, 16 Jul 2015 13:44:11 -0400
parents d59d9f4ec290
children 9b44691a3520
comparison
equal deleted inserted replaced
20393:84ca63c8a038 20394:9df3feddcf22
194 194
195 .gdbinit: etc/gdbinit 195 .gdbinit: etc/gdbinit
196 @$(gdbinit_install_rule) 196 @$(gdbinit_install_rule)
197 197
198 define changelog-from-hg-log 198 define changelog-from-hg-log
199 rm -f $@-t $@ && \ 199 rm -f $@-t && \
200 ( cd $(srcdir); \ 200 cd $(srcdir) && \
201 hg log --style=build-aux/changelog.tmpl --prune=b0e60ad4ae26 --only-branch=`hg branch`; \ 201 if [ -d .hg ]; then \
202 echo ""; \ 202 ( hg log --style=build-aux/changelog.tmpl --prune=b0e60ad4ae26 --only-branch=`hg branch`; \
203 echo "See the files in the directory etc/OLD-ChangeLogs for changes before 2011-04-19"; \ 203 echo ""; \
204 ) > $@-t && \ 204 echo "See the files in the directory etc/OLD-ChangeLogs for changes before 2011-04-19"; \
205 mv $@-t $@ 205 ) > $@-t && \
206 mv $@-t $@; \
207 fi
206 endef 208 endef
207 209
208 ChangeLog: 210 ChangeLog:
209 $(AM_V_GEN)$(changelog-from-hg-log) 211 $(AM_V_GEN)$(changelog-from-hg-log)
210 .PHONY: ChangeLog 212 .PHONY: ChangeLog