diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-10-25 14:15:54 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-10-25 14:15:54 +0000 |
| commit | 320ea8a598ebe7720c3d0cf872392131af2a24f5 (patch) | |
| tree | 117521d899ba8407dfa02b3bc993b65e372d8600 /bldit.lua | |
| parent | 87e20545c6a04350196b26984d16533434671dab (diff) | |
MAKEFILE IS REDUNDANTindev
Diffstat (limited to 'bldit.lua')
| -rw-r--r-- | bldit.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -51,7 +51,11 @@ bldit.dependencies = { bldit.opts = {} if user == nil then - bldit.opts.prefix = os.getenv("HOME").."/.local" + if os.getenv("PREFIX") == nil then + bldit.opts.prefix = os.getenv("HOME").."/.local" + else + bldit.opts.prefix = os.getenv("PREFIX") + end else bldit.opts.prefix = user.dirs.prefix end @@ -83,6 +87,8 @@ local function build_cmd() end local install_cmd = "echo \"\tINSTALL\t\""..bldit.opts.prefix.."\n" + .."mkdir -p "..bldit.opts.prefix.."/bin\n" + .."mkdir -p "..bldit.opts.prefix.."/share/man/man1\n" .."install -d " ..bldit.opts.prefix.."/bin\n" .."install -m 755 pkgit " |
