From f1d6e8e0a283190e91af847cbdb84d6c83113494 Mon Sep 17 00:00:00 2001 From: veclav talica Date: Fri, 16 Feb 2024 16:47:50 +0500 Subject: [PATCH] use $CC in make --- articles/oscillators/make | 2 +- compile.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/articles/oscillators/make b/articles/oscillators/make index a5899ec..3ba148c 100755 --- a/articles/oscillators/make +++ b/articles/oscillators/make @@ -3,5 +3,5 @@ cd $(dirname "$0") mkdir -p ./.dynamic mkdir -p ./.temp -gcc -Wno-unused-result -Wno-incompatible-pointer-types waveforms.c ../../tools/gifenc/gifenc.c -I../../tools -O2 -o ./.temp/waveforms +$CC -Wno-unused-result -Wno-incompatible-pointer-types waveforms.c ../../tools/gifenc/gifenc.c -I../../tools -O2 -o ./.temp/waveforms ./.temp/waveforms diff --git a/compile.sh b/compile.sh index ba7d3e6..fc922d3 100755 --- a/compile.sh +++ b/compile.sh @@ -2,6 +2,10 @@ set +e +# Settings: +# ========= +export CC=cc + mkdir -p ./html/articles ./tools/main_page_generator.py ./articles | ./tools/mmd/build/multimarkdown > ./html/index.html @@ -9,7 +13,7 @@ mkdir -p ./html/articles for d in ./articles/*/; do if [ -d "$d" ]; then if test -f "$d/make"; then - "$d/make" + ("$d/make") fi if test -d "$d/.dynamic"; then mkdir -p "./html/articles/$(basename -- $d)"