diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ext/ripper/depend | 4 | ||||
-rw-r--r-- | lib/mkmf.rb | 1 |
3 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,10 @@ +Sat Apr 13 21:09:02 2013 NAKAMURA Usaku <usa@ruby-lang.org> + + * lib/mkmf.rb (MakeMakefile#create_makefile): output new macro + disthdrdir to specify the path of id.h, parse.h and etc. + + * ext/ripper/depend: use above macro. + Sat Apr 13 20:28:08 2013 NARUSE, Yui <naruse@ruby-lang.org> * Merge Onigmo 5.13.4 f22cf2e566712cace60d17f84d63119d7c5764ee. diff --git a/ext/ripper/depend b/ext/ripper/depend index 1eb9f7d1df..198143ad85 100644 --- a/ext/ripper/depend +++ b/ext/ripper/depend @@ -15,8 +15,8 @@ ripper.o: ripper.c id.c lex.c eventids1.c eventids2.c eventids2table.c \ $(hdrdir)/ruby/util.h \ $(top_srcdir)/node.h \ $(top_srcdir)/internal.h \ - parse.h \ - id.h \ + $(disthdrdir)parse.h \ + $(disthdrdir)id.h \ $(top_srcdir)/regenc.h \ $(top_srcdir)/vm_opts.h \ $(topdir)/probes.h diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 73d1ea8046..0352685f89 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1822,6 +1822,7 @@ PATH_SEPARATOR = #{CONFIG['PATH_SEPARATOR']} VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])} } if $extmk + mk << "disthdrdir = #{$nmake ? '{$(VPATH)}' : '$(top_srcdir)/'}\n" mk << "RUBYLIB =\n""RUBYOPT = -\n" end prefix = mkintpath(CONFIG["prefix"]) |