summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 13:41:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-01 13:41:35 +0000
commit969f4d4c68ecb9dd03bfc1fa8b12c19ea08046fe (patch)
treecca128be5415889e9943c24fc0d4173737efa131 /Makefile.in
parentcbb7a67c325e4eeaafd999f0b82704b8470810e5 (diff)
* ext/etc/etc.c: add new functions: setpwent, getpwent, endpwent,
setgrent, getgrent, endgrent. * ext/socket/socket.c (sock_s_gethostbyname): do not reverse lookup. * Makefile.in: copy lex.c from $(srcdir) if it's not the current directory. [ruby-dev:21437] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index f6a3cb6..13de203 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -218,7 +218,11 @@ $(srcdir)/configure: $(srcdir)/configure.in
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
lex.c: keywords
- gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $(srcdir)/keywords > lex.c
+ if test "$(srcdir)" = "."; then \
+ gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $> > $@; \
+ else \
+ cp $(srcdir)/lex.c .; \
+ fi
.y.c:
$(YACC) $<