From 52bf3decff476d5642535757fe23d3a67aa50ecd Mon Sep 17 00:00:00 2001 From: aspiring_aurelian Date: Fri, 8 Dec 2023 18:32:29 -0600 Subject: Refine output --- main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3