aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraspiring_aurelian <tom.wells46@protonmail.com>2023-12-08 18:32:29 -0600
committeraspiring_aurelian <tom.wells46@protonmail.com>2023-12-08 18:32:29 -0600
commit52bf3decff476d5642535757fe23d3a67aa50ecd (patch)
tree80000bac7c9158afc3c28efea29aca9c871520bc
parentdf86b89290402ddf3e22d7b2d3a5381da7a0aefc (diff)
Refine output
-rw-r--r--main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.c b/main.c
index 4b68fb4..d25e435 100644
--- a/main.c
+++ b/main.c
@@ -60,6 +60,7 @@ void new(char *argv[]) {
pthread_join(s_thread, NULL);
pthread_join(m_thread, NULL);
+ printf("Created project: %s\n", name);
exit(0);
}
@@ -112,17 +113,24 @@ int main(int argc, char *argv[]) {
if (recomp) {
pid_t make_pid;
if ((make_pid = fork()) == 0) {
- printf("Recompiling...\n");
+ printf("Compiling with: \n");
switch (mode) {
case BUILD_RELEASE:
execl("/usr/bin/make", "make", "release", NULL);
break;
+ case BUILD:
+ execl("/usr/bin/make", "make", "debug", NULL);
+ break;
default:
execl("/usr/bin/make", "make", "debug", NULL);
+ printf("\n");
}
}
waitpid(make_pid, NULL, 0);
}
+ else if (mode == BUILD || mode == BUILD_RELEASE) {
+ printf("Nothing to do: binary file already up to date with source\n");
+ }
if (mode == RUN) {
pid_t x_pid;