Stripping prefixes
This commit is contained in:
20
gebs.c
20
gebs.c
@ -1,24 +1,26 @@
|
||||
#define GEBS_NO_PREFIX
|
||||
#define GEBS_IMPLEMENTATION
|
||||
#include "gebs.h"
|
||||
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
gebs_rebuild_self(argc, argv, "cc", "-o", "gebs", __FILE__);
|
||||
rebuild_self(argc, argv, "cc", "-o", "gebs", __FILE__);
|
||||
|
||||
if (!gebs_exists("build")) {
|
||||
gebs_mkdir("build");
|
||||
if (!exists1("build")) {
|
||||
mkdir1("build");
|
||||
}
|
||||
|
||||
if (gebs_needs_rebuild_many("build/self_rebuild", "example/self_rebuild.c", "gebs.h")) {
|
||||
if (GEBS_CMD("gcc", "-ggdb", "-o", "build/self_rebuild", "example/self_rebuild.c") != 0)
|
||||
if (needs_rebuild_many("build/self_rebuild", "example/self_rebuild.c", "gebs.h")) {
|
||||
if (CMD("gcc", "-ggdb", "-o", "build/self_rebuild", "example/self_rebuild.c") != 0)
|
||||
return 1;
|
||||
}
|
||||
if (gebs_needs_rebuild_many("build/arena", "example/arena.c", "gebs.h")) {
|
||||
if (GEBS_CMD("gcc", "-ggdb", "-o", "build/arena", "example/arena.c") != 0)
|
||||
if (needs_rebuild_many("build/arena", "example/arena.c", "gebs.h")) {
|
||||
if (CMD("gcc", "-ggdb", "-o", "build/arena", "example/arena.c") != 0)
|
||||
return 1;
|
||||
}
|
||||
if (gebs_needs_rebuild_many("build/commands", "example/commands.c", "gebs.h")) {
|
||||
if (GEBS_CMD("gcc", "-ggdb", "-o", "build/commands", "example/commands.c") != 0) {
|
||||
|
||||
if (needs_rebuild_many("build/commands", "example/commands.c", "gebs.h")) {
|
||||
if (CMD("gcc", "-ggdb", "-o", "build/commands", "example/commands.c") != 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user