diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index f6a3cb6609..13de20321a 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) $< |