blob: dca8890483a259ce7f1fdf7c57bb09e85ad6bec4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- 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)
|