From 3c2c47d941166d74b596ce55bc76109c5a67e1e4 Mon Sep 17 00:00:00 2001 From: vx-clutch Date: Fri, 5 Sep 2025 17:55:27 -0400 Subject: [PATCH] move BARE case --- src/create_project.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/create_project.c b/src/create_project.c index c6a2b38..477faba 100644 --- a/src/create_project.c +++ b/src/create_project.c @@ -30,15 +30,10 @@ int create_project(manifest_t manifest) if (status) return 1; - if (manifest.build == BARE) { - cfprintf("main.c", ""); - cfprintf( - "Makefile", - ".POSIX:\nCC ::= gcc\nCFLAGS ::= -std=c23 -Wall -Wextra -Wpedantic\n\nall: %s\n\nclean\n\t$(RM) %s", - manifest.project, manifest.project); - cfprintf("README", "%s", manifest.project); - goto bare_skip; - } + cfprintf( + "README", + "%s ( short description )\n\nThis cool project actions adverbly.\n", + manifest.project); main_source = manifest.flat ? "main.c" : "src/main.c"; cfprintf(main_source, "#include \n" @@ -111,9 +106,17 @@ int create_project(manifest_t manifest) "\n" "autoreconf --install --verbose --force\n"); break; + case BARE: + cfprintf("main.c", ""); + cfprintf( + "Makefile", + ".POSIX:\nCC ::= gcc\nCFLAGS ::= -std=c23 -Wall -Wextra -Wpedantic\n\nall: %s\n\nclean\n\t$(RM) %s", + manifest.project, manifest.project); + break; + default: + abort(); } -bare_skip: flast = true; switch (manifest.licence) { case MIT: