aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Makefile.in2
2 files changed, 3 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b6f55fb1e8..e150f9ee93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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: