diff options
| author | ruki <[email protected]> | 2018-12-14 23:17:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-14 13:47:09 +0800 |
| commit | 107f81a48da61d37ecbffac4e2f816b9cfedb21c (patch) | |
| tree | c38a0ee5baef7bf7b17918df605775bde60fab16 /xmake/core | |
| parent | 1912316fee7a21c13842532d316e50a315ba6e9b (diff) | |
sperate install, run and build
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/project/target.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 8484c0712..2332fcf93 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -701,19 +701,19 @@ function target:installdir() -- DESTDIR: be compatible with https://www.gnu.org/prep/standards/html_node/DESTDIR.html installdir = baseoption.get("installdir") or os.getenv("INSTALLDIR") or os.getenv("DESTDIR") or platform.get("installdir") - assert(installdir, "unknown install directory!") - - -- append prefix - local prefix = baseoption.get("prefix") or os.getenv("PREFIX") - if prefix then - installdir = path.join(installdir, prefix) + if installdir then + -- append prefix + local prefix = baseoption.get("prefix") or os.getenv("PREFIX") + if prefix then + installdir = path.join(installdir, prefix) + end end end - self._INSTALLDIR = installdir + self._INSTALLDIR = installdir or false end -- ok - return installdir + return installdir or nil end -- get rules of the source file |
