From 51d046e790736516def67e82f5c9c360c0f497b2 Mon Sep 17 00:00:00 2001 From: Odweta Date: Wed, 27 Dec 2023 16:16:23 +0100 Subject: [PATCH] building before running when the project has not been built --- src/run.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/run.c b/src/run.c index 083ed65..97127aa 100644 --- a/src/run.c +++ b/src/run.c @@ -1,4 +1,5 @@ #include "../include/run.h" +#include "../include/build.h" #include #include @@ -24,7 +25,7 @@ void run_project() { system("make run"); } else { // file does not exist => project has not been built - printf("Project not yet built. Build it first with 'vendetta build'.\n"); - exit(1); + build_project(); + run_project(); } }