1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2007-11-11 07:56:30 +00:00
parent 49d9c32823
commit c5335ee110
3 changed files with 17 additions and 6 deletions

View file

@ -1,3 +1,9 @@
Sun Nov 11 16:54:25 2007 Tanaka Akira <akr@fsij.org>
* 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 <drbrain@segment7.net>
* bin/gem: Add forgotten gem command.

View file

@ -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 --output-file=$@.tmp -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? && \
cp $@.tmp $@ && \
mv $@.tmp "$(srcdir)/$@.blt" \
) || \
cp "$(srcdir)/$@.blt" $@
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 $@; \
fi
.y.c:
$(YACC) $(YFLAGS) -o $@ $<

View file