diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-09-08 15:36:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-09-08 18:22:47 +0900 |
commit | bcf82b7c26a88a2521715a38990f0ab081001190 (patch) | |
tree | 34d8f2a9b97797f5be2eb3dfbb89affbe84967c6 /ext/ripper/depend | |
parent | a977c663123f7256f51201ed8390dc84adf63cf6 (diff) |
Process token IDs from id.def without id.h
Fixes id.h error during updating ripper.c by `make after-update`.
While it used to update id.h in the build directory, but was trying to
update ripper.c in the source directory. In principle, files in the
source directory can or should not depend on files in the build
directory.
Diffstat (limited to 'ext/ripper/depend')
-rw-r--r-- | ext/ripper/depend | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend index 80a6d62346..15c557a8ef 100644 --- a/ext/ripper/depend +++ b/ext/ripper/depend @@ -17,10 +17,9 @@ ripper.o: ripper.c all: check static: check -ripper.y: $(srcdir)/tools/preproc.rb $(srcdir)/tools/dsl.rb $(top_srcdir)/parse.y {$(VPATH)}id.h +ripper.y: $(srcdir)/tools/preproc.rb $(srcdir)/tools/dsl.rb $(top_srcdir)/parse.y $(top_srcdir)/defs/id.def $(ECHO) extracting $@ from $(top_srcdir)/parse.y - $(Q) $(RUBY) $(top_srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ \ - --vpath=$(VPATH)$(PATH_SEPARATOR)$(top_srcdir) id.h $(top_srcdir)/parse.y > ripper.tmp.y + $(Q) $(RUBY) $(top_srcdir)/tool/id2token.rb $(top_srcdir)/parse.y > ripper.tmp.y $(Q) $(RUBY) $(top_srcdir)/tool/pure_parser.rb ripper.tmp.y $(BISON) $(Q) $(RM) ripper.tmp.y.bak $(Q) $(RUBY) $(srcdir)/tools/preproc.rb ripper.tmp.y --output=$@ |