diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-13 06:29:49 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-13 06:29:49 +0000 |
commit | 9829e14432c2d30371305120c58c406a9df69a68 (patch) | |
tree | cc8d82c4bfeae5f3355f570766fac3d8ee48d08e /Makefile.in | |
parent | 65cb92fca34538ce3cb39ac91f9421674c57dfc5 (diff) | |
download | ruby-9829e14432c2d30371305120c58c406a9df69a68.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@13906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index 6a4720c940..5d9dcf36ef 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: |