Takes the environment variable DESTDIR in rake install

If the environment variable `DESTDIR` is set, the writing destination is `<DESTDIR>/<PREFIX>/...`.
It is assumed to be used for package work.
This commit is contained in:
dearblue
2023-02-12 21:02:31 +09:00
parent 0e9a71e50a
commit 3d996a84cc
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -9,6 +9,7 @@ module MRuby
autoload :Presym, "mruby/presym"
INSTALL_PREFIX = ENV['PREFIX'] || ENV['INSTALL_PREFIX'] || '/usr/local'
INSTALL_DESTDIR = ENV['DESTDIR'] || ''
class << self
def targets