summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-03 04:28:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-03 04:28:14 +0000
commite3bab670fcbcb8e9adced59e880aa0b4851949cd (patch)
tree7b7610247167964f09d35f3d777fe1def6ddd78f /Makefile.in
parent835e16733d0a8fa3baba4386688e92ad38bd149c (diff)
* Makefile.in (lex.c): try gperf first, and copy from the source
directory if failed. [ruby-dev:22123] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 1accc04..64110b8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -222,11 +222,9 @@ $(srcdir)/configure: $(srcdir)/configure.in
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
lex.c: keywords
- if test "$(srcdir)" = "."; then \
- gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $> > $@; \
- else \
- cp $(srcdir)/lex.c .; \
- fi
+ @-rm -f $@
+ gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $> > $@ || \
+ cp "$(srcdir)/$@" .
.y.c:
$(YACC) $<