--- swig/ruby/RubyMakefile.mk.orig 2006-01-13 17:48:46.000000000 -0800 +++ swig/ruby/RubyMakefile.mk 2006-05-21 18:08:38.000000000 -0700 @@ -22,7 +22,7 @@ RUBY_LIB_DIR := $(shell ruby -rrbconfig -e "puts Config::CONFIG['libdir']") RUBY_SO_NAME := $(shell ruby -rrbconfig -e "puts Config::CONFIG['RUBY_SO_NAME']") RUBY_EXTENSIONS_DIR := $(shell ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']") -INSTALL_DIR := $(RUBY_EXTENSIONS_DIR)/gdal +INSTALL_DIR := $(DESTDIR)$(RUBY_EXTENSIONS_DIR)/gdal RUBY_INCLUDE = -I$(RUBY_INCLUDE_DIR) LDFLAGS += -shared -L$(RUBY_LIB_DIR) @@ -39,7 +39,7 @@ rm -frd $(INSTALL_DIR) $(INSTALL_DIR): - mkdir -v $(INSTALL_DIR) + mkdir -p $(INSTALL_DIR) install: $(INSTALL_DIR) $(INSTALL) $(RUBY_MODULES) $(INSTALL_DIR)