Setup project so it doesnt auto-update and only compiles whats in src

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2, Sig, Sigo 2022-07-14 12:59:58 +00:00 committed by GitHub
parent 42c3bd0db4
commit 0400968ea3
4 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#Compiles the entire program then runs it, producing an executable.
#C
printf "Running program...\n\n\n"
if gcc $(find . -type f -name "*.c") ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
if gcc src/*.c ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
./${PROJECT_NAME} "$@"
fi
printf "\n\n"

BIN
current Executable file

Binary file not shown.

4
sig
View File

@ -1,8 +1,8 @@
export AUTO_UPDATE=true
export AUTO_UPDATE=false
source utils/define.sh
define PROJECT_NAME "CProjectTemplate"
define PROJECT_NAME "current"
define CUSTOM_PARAMS "-lncurses"
define LANGUAGE "C"

View File