Makefile now uses separate build directories for different OS versions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user