summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-11 09:27:05 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-11 09:27:05 +0000
commit63587c30d116fc687737194d8f120bed154cd451 (patch)
treea03a8a80ae9176ad1d9253c4d1cf805a530bae4e /Makefile.in
parent7689e6b971542e083e3ef004ebb363e9767bd94e (diff)
downloadruby-63587c30d116fc687737194d8f120bed154cd451.tar.gz
ruby-63587c30d116fc687737194d8f120bed154cd451.tar.xz
ruby-63587c30d116fc687737194d8f120bed154cd451.zip
* Makefile.in (lex.c): touch lex.c if gperf failed.
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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 8287dc1c6..93d56ec6a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,13 +165,16 @@ $(srcdir)/configure: $(srcdir)/configure.in
# * with gperf v.s. without gperf
# * ./configure v.s. ../ruby/configure
# * GNU make v.s. HP-UX make # HP-UX make invokes the action if lex.c and keywords has same mtime.
+# * 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 \
touch $@; \
elif test -f $(srcdir)/lex.c && test -z "`find $? -newer $(srcdir)/lex.c -print`"; then \
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 $@; \
+ ( gperf --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && cp $@.tmp $@ ) || \
+ touch $@; \
fi
.y.c: