From 9a0cfc7a478a883affd4a3278e4d1ffc5709ae05 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 22 Apr 2022 18:35:27 +0200 Subject: [PATCH] moved removing versions.json to build.sh --- Makefile | 5 +---- build.sh | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index be95045..a3d94f7 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,5 @@ files += src/*.c files += include/*.h main: - @echo Removing versions.json - rm versions.json - @echo Compiling... - cc $(files) -ljson-c -lcurl -lm -o out/why2 \ No newline at end of file + cc $(files) -ljson-c -lcurl -lm -o out/why2 diff --git a/build.sh b/build.sh index 691c4ee..87959ab 100644 --- a/build.sh +++ b/build.sh @@ -1,9 +1,12 @@ #!/bin/sh +# Remove versions.json +rm -f versions.json + # Build project make # Check for 'debug' flag if [ "$1" == "debug" ]; then ./out/why2 -fi \ No newline at end of file +fi