From c571d4702ec568a16f1b3ee912a8cf996b480f8d Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 8 Jun 2007 02:56:12 +0000 Subject: * lex.c.blt: moved from lex.c. * Makefile.in: use lex.c.blt if gperf is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- Makefile.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 5a65d34a04..4dba2db716 100644 --- a/Makefile.in +++ b/Makefile.in @@ -160,9 +160,12 @@ $(srcdir)/configure: $(srcdir)/configure.in cd $(srcdir) && $(AUTOCONF) lex.c: keywords - @-$(RM) $@ - gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@ || \ - cp "$(srcdir)/$@" . + ( \ + gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \ + cp $@.tmp $@ && \ + mv $@.tmp "$(srcdir)/$@.blt" \ + ) || \ + cp "$(srcdir)/$@.blt" $@ .y.c: $(YACC) $(YFLAGS) -o $@ $< -- cgit v1.2.3