Mercurial > octave
diff src/Makefile.in @ 5350:ad44a165950d
[project @ 2005-05-12 18:13:34 by jwe]
author | jwe |
---|---|
date | Thu, 12 May 2005 18:13:34 +0000 |
parents | ac8d64b9e76a |
children | df230b7df93c |
line wrap: on
line diff
--- a/src/Makefile.in Wed May 11 17:47:47 2005 +0000 +++ b/src/Makefile.in Thu May 12 18:13:34 2005 +0000 @@ -545,9 +545,14 @@ oct-gperf.h: octave.gperf @echo "making $@ from $<" - @$(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash \ - $< | $(SED) 's,lookup\[,gperf_lookup[,' > $@-t - @$(top_srcdir)/move-if-change $@-t $@ + @$(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< > $@-t1 \ + || (rm -f $@-t1; exit 1) + @$(SED) 's,lookup\[,gperf_lookup[,' $@-t1 > $@-t2 || rm -f $@-t2 + @if [ -s $@-t2 ]; then \ + $(top_srcdir)/move-if-change $@-t2 $@; \ + else \ + exit 1; \ + fi # How to make a .oct file from a .o file: