summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-11 10:33:33 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-11 10:33:33 +0000
commitae7a85f54961576ffa5273a6710a550e1473143a (patch)
tree868d18d552a2ca374c6e2926a8ea0702a8e2258a /Makefile.in
parent7687666c4511af9ca98e1699a7b4a2e2798c82e7 (diff)
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
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
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: