From ae7a85f54961576ffa5273a6710a550e1473143a Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 11 Nov 2007 10:33:33 +0000 Subject: copy $(srcdir)/lex.c if gperf failed and $@ is not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 582ec01014..c10b5ee2a9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -174,7 +174,11 @@ lex.c: keywords ( cp $(srcdir)/lex.c $@ && echo $@ copied. ) \ else \ ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && cp $@.tmp $@ ) || \ - ( test -f $@ && touch $@ && echo $@ touched after gperf fail. ) \ + if test -f $@; then \ + ( touch $@ && echo $@ touched after gperf fail. ) \ + else \ + ( cp $(srcdir)/lex.c $@ && echo $@ copied after gperf fail. ) \ + fi \ fi .y.c: -- cgit v1.2.3