removed the build message when the build was successful

This commit is contained in:
Odweta
2023-12-27 17:22:29 +01:00
parent 03aedb0b2a
commit 8492525ee0
+3 -11
View File
@@ -112,25 +112,17 @@ void build_project() {
strcat(src_dir, "/src");
src_files_num = count_src_files(src_dir);
// printf("%d file(s) found in %s\n", src_files_num, src_dir);
char src_files[src_files_num][1000];
load_filenames(src_files, src_dir);
for (int i = 0; i < src_files_num; i++) {
// printf("%s\n", src_files[i]);
}
char *makefile = create_new_makefile(src_files);
write_new_makefile(makefile);
if (system("make") == 0) {
printf("The build was successful!\n");
save_build_status(0);
} else {
printf("An error occured while building.\n");
save_build_status(1);
if (system("make") != 0) {
fprintf(stderr, "An error occured while building.\n");
exit(1);
}
}