mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* Makefile.in (lex.c): simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae7a85f549
commit
200c3aaa25
2 changed files with 7 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Nov 11 19:40:52 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* Makefile.in (lex.c): simplified.
|
||||
|
||||
Sun Nov 11 18:31:48 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* Makefile.in (lex.c): touch lex.c if gperf failed but lex.c exists.
|
||||
|
|
12
Makefile.in
12
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:
|
||||
|
|
Loading…
Add table
Reference in a new issue