fix wrong handling of make path
This commit is contained in:
parent
a7acd8bc7d
commit
b37cd897e8
|
|
@ -1019,7 +1019,7 @@ int main(int argc, char *argv[])
|
||||||
if ((strcmp(exInfo->category, "others") != 0) && // Skipping "others" category
|
if ((strcmp(exInfo->category, "others") != 0) && // Skipping "others" category
|
||||||
((exInfo->status & VALID_MISSING_WEB_OUTPUT) || (exInfo->status & VALID_MISSING_WEB_METADATA)))
|
((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));
|
//system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name));
|
||||||
|
|
||||||
// Update generated .html metadata
|
// Update generated .html metadata
|
||||||
|
|
@ -1198,16 +1198,11 @@ int main(int argc, char *argv[])
|
||||||
//putenv(TextFormat("RAYLIB_DIR=%s\\..", exBasePath));
|
//putenv(TextFormat("RAYLIB_DIR=%s\\..", exBasePath));
|
||||||
//putenv("PATH=%PATH%;C:\\raylib\\w64devkit\\bin");
|
//putenv("PATH=%PATH%;C:\\raylib\\w64devkit\\bin");
|
||||||
//putenv("MAKE=mingw32-make");
|
//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);
|
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
|
// 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));
|
//system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name));
|
||||||
|
|
||||||
// Update generated .html metadata
|
// Update generated .html metadata
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user