Skip to content

Commit

Permalink
* lex.c: renamed from lex.c.blt.
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
akr committed Nov 11, 2007
1 parent 49d9c32 commit c5335ee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
17 changes: 11 additions & 6 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ $<
Expand Down
File renamed without changes.

0 comments on commit c5335ee

Please sign in to comment.