diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-11 09:32:30 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-11 09:32:30 +0000 |
commit | efd8303bc39d07a2bb20c891bf1778077c437e7e (patch) | |
tree | e35907f8788574bd135b4213d6a251054d8f2d22 | |
parent | f0a827f087db47cb4555491511cebf46e1eeec6c (diff) | |
download | ruby-efd8303bc39d07a2bb20c891bf1778077c437e7e.tar.gz |
touch lex.c only if lex.c exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Makefile.in | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ -Sun Nov 11 18:15:11 2007 Tanaka Akira <akr@fsij.org> +Sun Nov 11 18:31:48 2007 Tanaka Akira <akr@fsij.org> - * Makefile.in (lex.c): touch lex.c if gperf failed. + * Makefile.in (lex.c): touch lex.c if gperf failed but lex.c exists. Although this may cause non-updated lex.c, svn co may generate keywords newer than lex.c especially on a file system which can record fractional mtime such as XFS. diff --git a/Makefile.in b/Makefile.in index 93d56ec6a7..96212279c5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -174,7 +174,7 @@ lex.c: keywords cp $(srcdir)/lex.c $@; \ else \ ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && cp $@.tmp $@ ) || \ - touch $@; \ + ( test -f $@ && touch $@ ) \ fi .y.c: |