Skip to content

Commit b37cd89

Browse files
committed
fix wrong handling of make path
1 parent a7acd8b commit b37cd89

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tools/rexm/rexm.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ int main(int argc, char *argv[])
10191019
if ((strcmp(exInfo->category, "others") != 0) && // Skipping "others" category
10201020
((exInfo->status & VALID_MISSING_WEB_OUTPUT) || (exInfo->status & VALID_MISSING_WEB_METADATA)))
10211021
{
1022-
system(TextFormat("%s/make -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exInfo->category, exInfo->name));
1022+
system(TextFormat("make -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exInfo->category, exInfo->name));
10231023
//system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name));
10241024

10251025
// Update generated .html metadata
@@ -1198,16 +1198,11 @@ int main(int argc, char *argv[])
11981198
//putenv(TextFormat("RAYLIB_DIR=%s\\..", exBasePath));
11991199
//putenv("PATH=%PATH%;C:\\raylib\\w64devkit\\bin");
12001200
//putenv("MAKE=mingw32-make");
1201-
char *make = "make";
1202-
#if defined(__linux__) || defined(__APPLE__)
1203-
make = "/usr/bin/make";
1204-
#endif
1205-
TraceLog(LOG_INFO, "Using make: %s", make);
12061201
ChangeDirectory(exBasePath);
1207-
system(TextFormat("%s %s/%s PLATFORM=PLATFORM_DESKTOP -B", make, exCategory, exName));
1202+
system(TextFormat("make %s/%s PLATFORM=PLATFORM_DESKTOP -B", exCategory, exName));
12081203

12091204
// Build example for PLATFORM_WEB
1210-
system(TextFormat("%s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", make, exCategory, exName));
1205+
system(TextFormat("make -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exCategory, exName));
12111206
//system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name));
12121207

12131208
// Update generated .html metadata

0 commit comments

Comments
 (0)