summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-11 10:41:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-11 10:41:35 +0000
commit200c3aaa25c07fc40cb4bc9b38a51528e2117807 (patch)
tree4ece95a583d5abf918a492442376a18680362f10 /Makefile.in
parentae7a85f54961576ffa5273a6710a550e1473143a (diff)
* Makefile.in (lex.c): simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 3 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in
index c10b5ee2a9..b697cd804a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -168,17 +168,11 @@ $(srcdir)/configure: $(srcdir)/configure.in
# * svn checkout generate a file with mtime as current time
# * XFS has a mtime with fractional part
lex.c: keywords
- if test -f $@ && test -z "`find $? -newer $@ -print`"; then \
+ ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && mv $@.tmp $@ ) || \
+ if test -f $@; then \
( touch $@ && echo $@ touched. ) \
- elif test -f $(srcdir)/lex.c && test -z "`find $? -newer $(srcdir)/lex.c -print`"; then \
- ( 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 $@ ) || \
- if test -f $@; then \
- ( touch $@ && echo $@ touched after gperf fail. ) \
- else \
- ( cp $(srcdir)/lex.c $@ && echo $@ copied after gperf fail. ) \
- fi \
+ ( cp $(srcdir)/lex.c $@ && echo $@ copied. ) \
fi
.y.c: