Switch to using Makefile for *nix systems

This commit is contained in:
Abdelrahman Said
2025-04-13 20:11:05 +01:00
parent c83c652b37
commit 0e5942af34
3 changed files with 75 additions and 104 deletions

19
build
View File

@@ -1,3 +1,20 @@
#!/bin/bash
bear -- ./compile $@
BUILD_TYPE="debug"
ARGS=""
while [[ $# > 0 ]];do
case $1 in
--release)
BUILD_TYPE="release"
shift
;;
*|-*|--*)
rest=("$@")
ARGS+=" ${rest[0]}"
shift
;;
esac
done
bear -- make BUILD_TYPE=$BUILD_TYPE $ARGS