# HG changeset patch # User John W. Eaton # Date 1233942689 18000 # Node ID 6e0d425862faf72a8802c05200bcd4c5bff6fe42 # Parent e5ffb52c9c611079fa6dd4ff580b73d1ecdb2b1d src/Makefile.in (oct-gperf.h): avoid pipeline diff -r e5ffb52c9c61 -r 6e0d425862fa src/ChangeLog --- a/src/ChangeLog Fri Feb 06 13:45:48 2009 +0100 +++ b/src/ChangeLog Fri Feb 06 12:51:29 2009 -0500 @@ -1,3 +1,8 @@ +2009-02-06 John W. Eaton + + * Makefile.in (oct-gperf.h): Don't use pipeline to process gperf + output. + 2009-02-05 John W. Eaton * symtab.cc (symbol_table::fcn_info::cn_info_rep::xfind): diff -r e5ffb52c9c61 -r 6e0d425862fa src/Makefile.in --- a/src/Makefile.in Fri Feb 06 13:45:48 2009 +0100 +++ b/src/Makefile.in Fri Feb 06 12:51:29 2009 -0500 @@ -639,12 +639,15 @@ fi @mv $@-t $@ +## Don't use a pipeline to process gperf output since if gperf +## is missing but sed is not, the exit status of the pipeline +## will still be success and we will end up creating an empty +## oct-gperf.h file. 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 \ - || (rm -f $@-t; exit 1) - @mv $@-t $@ + $(GPERF) -t -C -D -G -L C++ -Z octave_kw_hash $< > $@-t1 + $(SED) 's,lookup\[,gperf_lookup[,' < $@-t1 > $@-t2 + mv $@-t2 $@ + rm -f $@-t1 display.o: CPPFLAGS += $(X11_FLAGS)