moved removing versions.json to build.sh

This commit is contained in:
Václav Šmejkal 2022-04-22 18:35:27 +02:00
parent a1141703e5
commit 9a0cfc7a47
2 changed files with 5 additions and 5 deletions

View File

@ -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
cc $(files) -ljson-c -lcurl -lm -o out/why2

View File

@ -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
fi