summaryrefslogtreecommitdiffstats
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
commit1c63280fcb458971136577d2aea1556555c07619 (patch)
tree7b7610247167964f09d35f3d777fe1def6ddd78f /Makefile.in
parent1b17a6a411f476196db0216469e88775dcfaadac (diff)
downloadruby-1c63280fcb458971136577d2aea1556555c07619.tar.gz
ruby-1c63280fcb458971136577d2aea1556555c07619.tar.xz
ruby-1c63280fcb458971136577d2aea1556555c07619.zip
* Makefile.in (lex.c): try gperf first, and copy from the source
directory if failed. [ruby-dev:22123] git-svn-id: http://svn.ruby-lang.org/repos/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 1accc0463..64110b876 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) $<