From 64fb0943846f37d443f1bf774f251d30feec2600 Mon Sep 17 00:00:00 2001 From: Joao Leal Date: Thu, 8 Aug 2024 19:33:15 -0300 Subject: [PATCH] new just command "Check"; Compile the C code in "code/" --- justfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index e6ecaf0..288baa3 100644 --- a/justfile +++ b/justfile @@ -15,7 +15,12 @@ watch: @echo "Watching slides" typst w slides.typ -# Compile and Run the C code -c: - @echo "Compiling and Running the C code" - @echo "TODO!" \ No newline at end of file +# Compile the C code in "code/" +check: + #!/usr/bin/env bash + echo "compiling all *.c code to output" + rm -r ./output;mkdir ./output + for FILE in $(ls ./solutions/) + do + cc ./solutions/$FILE -o ./output/$FILE.out + done