Restructure project, add gebs_exists() and gebs_mkdir()

This commit is contained in:
kamkow1
2025-05-19 12:25:08 +02:00
parent 0087c523b5
commit c905379d14
6 changed files with 45 additions and 14 deletions

16
gebs.c Normal file
View File

@ -0,0 +1,16 @@
#define GEBS_IMPLEMENTATION
#include "gebs.h"
int main(int argc, char ** argv)
{
gebs_rebuild_self(argc, argv, "cc", "-o", "gebs", __FILE__);
if (!gebs_exists("build")) {
gebs_mkdir("build");
}
if (GEBS_CMD("gcc", "-o", "build/self_rebuild", "example/self_rebuild.c") != 0)
return 1;
return 0;
}