Mercurial > hg > octave-nkf
changeset 16603:e5c0acc31640
install .gdbinit in test directory
* build-aux/common.mk (gdbinit_install_rule): New macro.
* Makefile.am (.gdbinit): Use it.
* test/Makefile.am (all-local, .gdbinit): New targets.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 03 May 2013 00:29:07 -0400 |
parents | 2c11d7c6cc21 |
children | 5b6d8bfdea25 |
files | Makefile.am build-aux/common.mk test/Makefile.am |
diffstat | 3 files changed, 15 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.am +++ b/Makefile.am @@ -124,12 +124,7 @@ chmod a+rx "$@" .gdbinit: etc/gdbinit - @if [ -f .gdbinit ]; then \ - echo "refusing to overwrite .gdbinit with newer version from $<" 1>&2; \ - else \ - echo "Installing .gdbinit from version at $<" ; \ - cp $< $@; \ - fi + @$(gdbinit_install_rule) if AMCOND_BUILD_DOCS AUTHORS BUGS INSTALL.OCTAVE:
--- a/build-aux/common.mk +++ b/build-aux/common.mk @@ -718,6 +718,15 @@ mv $@-t $@ endef +define gdbinit_install_rule +if [ -f .gdbinit ]; then \ + echo "refusing to overwrite .gdbinit with newer version from $<" 1>&2; \ +else \ + echo "Installing .gdbinit from version at $<" ; \ + cp $< $@; \ +fi +endef + %.cc-tst : %.cc $(test-file-commands)
--- a/test/Makefile.am +++ b/test/Makefile.am @@ -60,6 +60,11 @@ include fcn-handle-derived-resolution/module.mk include nest/module.mk +all-local: .gdbinit + +.gdbinit: ../etc/gdbinit + @$(gdbinit_install_rule) + check: sparse.tst bc-overload-tests.stamp $(top_builddir)/run-octave --norc --silent --no-history $(srcdir)/fntests.m $(srcdir)