From b37cd897e89fd837297d4a5bc41625333a7a3f50 Mon Sep 17 00:00:00 2001 From: Johnny Cena Date: Sun, 24 Aug 2025 09:25:44 +0200 Subject: [PATCH] fix wrong handling of make path --- tools/rexm/rexm.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c index 4a4a83909..876e91394 100644 --- a/tools/rexm/rexm.c +++ b/tools/rexm/rexm.c @@ -1019,7 +1019,7 @@ int main(int argc, char *argv[]) if ((strcmp(exInfo->category, "others") != 0) && // Skipping "others" category ((exInfo->status & VALID_MISSING_WEB_OUTPUT) || (exInfo->status & VALID_MISSING_WEB_METADATA))) { - system(TextFormat("%s/make -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exInfo->category, exInfo->name)); + system(TextFormat("make -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exInfo->category, exInfo->name)); //system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name)); // Update generated .html metadata @@ -1198,16 +1198,11 @@ int main(int argc, char *argv[]) //putenv(TextFormat("RAYLIB_DIR=%s\\..", exBasePath)); //putenv("PATH=%PATH%;C:\\raylib\\w64devkit\\bin"); //putenv("MAKE=mingw32-make"); - char *make = "make"; - #if defined(__linux__) || defined(__APPLE__) - make = "/usr/bin/make"; - #endif - TraceLog(LOG_INFO, "Using make: %s", make); ChangeDirectory(exBasePath); - system(TextFormat("%s %s/%s PLATFORM=PLATFORM_DESKTOP -B", make, exCategory, exName)); + system(TextFormat("make %s/%s PLATFORM=PLATFORM_DESKTOP -B", exCategory, exName)); // Build example for PLATFORM_WEB - system(TextFormat("%s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", make, exCategory, exName)); + system(TextFormat("make -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exCategory, exName)); //system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name)); // Update generated .html metadata