summaryrefslogtreecommitdiff
path: root/mbld/install.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-15 11:24:01 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-15 11:24:01 -0700
commit96da70b6356fc720eec5469d251c8031f24313ea (patch)
treef44a5278781259ae7a9375cb1d2d1190cac63de7 /mbld/install.myr
parent04c7c7f5989f7521ca68c8604b5b98b3bd4502bb (diff)
downloadmc-96da70b6356fc720eec5469d251c8031f24313ea.tar.gz
Don't hardcode paths.
Plan 9 needs them to be configured differently.
Diffstat (limited to 'mbld/install.myr')
-rw-r--r--mbld/install.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbld/install.myr b/mbld/install.myr
index 60adaa9..950c9d3 100644
--- a/mbld/install.myr
+++ b/mbld/install.myr
@@ -28,11 +28,11 @@ const movetargs = {b, delete
for tn in b.all
match gettarg(b.targs, tn)
| `Bin bt:
- movefile(b, delete, bt.dir, bt.name, opt_instroot, opt_destdir, "bin", 0o755)
+ movefile(b, delete, bt.dir, bt.name, opt_instroot, opt_destdir, config.Binpath, 0o755)
| `Lib lt:
- movefile(b, delete, lt.dir, lt.name, opt_instroot, opt_destdir, "lib/myr", 0o644)
+ movefile(b, delete, lt.dir, lt.name, opt_instroot, opt_destdir, config.Libpath, 0o644)
libarchive = std.fmt("lib%s.a", lt.name)
- movefile(b, delete, lt.dir, libarchive, opt_instroot, opt_destdir, "lib/myr", 0o644)
+ movefile(b, delete, lt.dir, libarchive, opt_instroot, opt_destdir, config.Libpath, 0o644)
std.slfree(libarchive)
| `Gen gt:
/* nothing to do */