mirror of
https://gitee.com/Lamdonn/varch.git
synced 2025-12-06 08:46:42 +08:00
29 lines
404 B
Bash
29 lines
404 B
Bash
#!/bin/bash
|
|
|
|
exe_file="built/bin/app"
|
|
|
|
echo "cleaning..."
|
|
if [ -f $exe_file ]; then
|
|
rm $exe_file
|
|
fi
|
|
|
|
echo "compilling..."
|
|
|
|
if [ "$1" == "debug" ]; then
|
|
make CFLAG=-g
|
|
else
|
|
make
|
|
fi
|
|
|
|
if [ -f $exe_file ]; then
|
|
echo "executing..."
|
|
./$exe_file
|
|
else
|
|
echo "compile fail!!!"
|
|
fi
|
|
|
|
# find . -name *.h -o -name *.c | xargs wc -l
|
|
|
|
# enter key to continue
|
|
read -p "Press enter to continue"
|