diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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; |