Index: ruby-1.9.1-p243/lib/mkmf.rb =================================================================== --- ruby-1.9.1-p243.orig/lib/mkmf.rb +++ ruby-1.9.1-p243/lib/mkmf.rb @@ -1681,6 +1681,7 @@ static: $(STATIC_LIB)#{$extout ? " insta mfile.print "\t@-$(RMDIRS) #{fseprepl[dir]}\n" else mfile.print "#{dest}: #{f}\n" + mfile.print "\t@$(MAKEDIRS) #{dir}" mfile.print "\t$(INSTALL_PROG) #{fseprepl[f]} #{fseprepl[dir]}\n" if defined?($installed_list) mfile.print "\t@echo #{dir}/#{File.basename(f)}>>$(INSTALLED_LIST)\n" @@ -1704,6 +1705,7 @@ static: $(STATIC_LIB)#{$extout ? " insta dest = "#{dir}/#{File.basename(f)}" mfile.print("install-rb#{sfx}: #{dest}\n") mfile.print("#{dest}: #{f}\n") + mfile.print "\t@$(MAKEDIRS) #{dir}" mfile.print("\t$(#{$extout ? 'COPY' : 'INSTALL_DATA'}) ") mfile.print("#{fseprepl[f]} $(@D#{sep})\n") if defined?($installed_list) and !$extout