commit 3c2c47d941166d74b596ce55bc76109c5a67e1e4
parent 29d62d3893d00f512edf246e827fa2a74c6ab2c9
Author: vx-clutch <[email protected]>
Date: Fri, 5 Sep 2025 17:55:27 -0400
move BARE case
Diffstat:
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git 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 <stdio.h>\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: