1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

invoke make for just the first Makefile from list

This commit is contained in:
rpljwi 2020-05-19 11:36:14 +03:00
parent ac0f42367f
commit 1ac8aa2bc6

View File

@ -83,8 +83,10 @@ int main(int argc, char **argv) {
set_linux();
#endif
for(string fname: {"Makefile.loc", "Makefile.simple", "Makefile"})
if(file_exists(fname))
if(file_exists(fname)) {
system("make -f " + fname + " language-data.cpp autohdr.h savepng.o");
break;
}
for(int i=1; i<argc; i++) {
string s = argv[i];
if(s.substr(0, 2) == "-D") {