Makefile now uses separate build directories for different OS versions

This commit is contained in:
2023-05-10 14:09:08 -04:00
parent 3a113bb2ef
commit 9e74e67277
12 changed files with 94 additions and 84 deletions

View File

@@ -154,7 +154,7 @@ static bool sbwrite_file(std::ostream *s, const char *fn) {
std::string package_lua_source(const std::string &base, std::ostream *s) {
std::string err;
std::string cfn = base + "/lua/control.lst";
std::string cfn = base + "/../../lua/control.lst";
std::string ctrl = read_file(cfn.c_str(), err);
if (!err.empty()) {
return err;
@@ -166,7 +166,7 @@ std::string package_lua_source(const std::string &base, std::ostream *s) {
sbwrite_string(s, names[i]);
}
for (int i = 0; i < int(names.size()); i++) {
std::string lfn = base + "/lua/" + names[i];
std::string lfn = base + "/../../lua/" + names[i];
if (!sbwrite_file(s, lfn.c_str())) {
return std::string("Cannot read source file: ") + lfn;
}