diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-11 07:56:30 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-11 07:56:30 +0000 |
commit | c5335ee110cfab1179018f6b0dbd504742017a4e (patch) | |
tree | d9e722697699ca9b0115889744360e188e980b7d | |
parent | 49d9c3282343f45690d45ce564c33f8bc6b788d2 (diff) |
* lex.c: renamed from lex.c.blt.
* Makefile.in (lex.c): use find command to check mtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Makefile.in | 17 | ||||
-rw-r--r-- | lex.c (renamed from lex.c.blt) | 0 |
3 files changed, 17 insertions, 6 deletions
@@ -1,3 +1,9 @@ +Sun Nov 11 16:54:25 2007 Tanaka Akira <[email protected]> + + * lex.c: renamed from lex.c.blt. + + * Makefile.in (lex.c): use find command to check mtime. + Sun Nov 11 05:34:13 2007 Eric Hodel <[email protected]> * bin/gem: Add forgotten gem command. diff --git a/Makefile.in b/Makefile.in index 30c82771db..8287dc1c67 100644 --- a/Makefile.in +++ b/Makefile.in @@ -161,13 +161,18 @@ config.status: $(srcdir)/configure $(srcdir)/configure: $(srcdir)/configure.in cd $(srcdir) && $(AUTOCONF) +# Things which should be considered: +# * 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. lex.c: keywords - ( \ - gperf [email protected] -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && \ - cp [email protected] $@ && \ - mv [email protected] "$(srcdir)/[email protected]" \ - ) || \ - cp "$(srcdir)/[email protected]" $@ + 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 [email protected] -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && cp [email protected] $@; \ + fi .y.c: $(YACC) $(YFLAGS) -o $@ $< |