summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 06:29:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 06:29:49 +0000
commiteafd91f9c4a062102ef1a80663564a8160d85f82 (patch)
treecc8d82c4bfeae5f3355f570766fac3d8ee48d08e /Makefile.in
parentebea8b0f2d95f830c93acdd2cfd94df0ce8f813e (diff)
downloadruby-eafd91f9c4a062102ef1a80663564a8160d85f82.tar.gz
ruby-eafd91f9c4a062102ef1a80663564a8160d85f82.tar.xz
ruby-eafd91f9c4a062102ef1a80663564a8160d85f82.zip
* lex.c.blt: moved from lex.c.
* lex.c.src: copied from keywords. This is the source of lex.c.blt. * Makefile.in (lex.c): use lex.c.blt if keywords is same as lex.c.src. * win32/Makefile.sub (lex.c): re-introduce copy rule. * bcc32/Makefile.sub (lex.c): ditto. * wince/Makefile.sub (lex.c): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 6a4720c94..5d9dcf36e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -168,11 +168,13 @@ $(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
- ( gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && mv $@.tmp $@ ) || \
- if test -f $@; then \
- touch $@ && echo $@ touched.; \
+ if cmp -s $(srcdir)/lex.c.src $?; then \
+ cp $(srcdir)/lex.c.blt $@; \
else \
- cp $(srcdir)/lex.c $@ && echo $@ copied.; \
+ gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \
+ mv $@.tmp $@ && \
+ cp $? $(srcdir)/lex.c.src && \
+ cp $@ $(srcdir)/lex.c.blt; \
fi
.y.c: