Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Makefile.in (lex.c): don't remove lex.c at first.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@13890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 5916a81c85506a3006e84e49eb14563cf0debd39 1 parent 26a1bd7
@akr akr authored
Showing with 10 additions and 3 deletions.
  1. +4 −0 ChangeLog
  2. +6 −3 Makefile.in
View
4 ChangeLog
@@ -1,3 +1,7 @@
+Mon Nov 12 12:38:31 2007 Tanaka Akira <akr@fsij.org>
+
+ * Makefile.in (lex.c): don't remove lex.c at first.
+
Fri Nov 9 07:26:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* random.c: update MT URL.[ruby-core:13305].
View
9 Makefile.in
@@ -155,9 +155,12 @@ $(srcdir)/configure: $(srcdir)/configure.in
cd $(srcdir) && $(AUTOCONF)
lex.c: keywords
- @-$(RM) $@
- gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@ || \
- cp "$(srcdir)/$@" .
+ ( 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.; \
+ else \
+ cp $(srcdir)/lex.c $@ && echo $@ copied.; \
+ fi
.y.c:
$(YACC) $<
Please sign in to comment.
Something went wrong with that request. Please try again.