use $CC in make

This commit is contained in:
veclav talica 2024-02-16 16:47:50 +05:00
parent f56f102530
commit f1d6e8e0a2
2 changed files with 6 additions and 2 deletions

View File

@ -3,5 +3,5 @@
cd $(dirname "$0") cd $(dirname "$0")
mkdir -p ./.dynamic mkdir -p ./.dynamic
mkdir -p ./.temp 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 ./.temp/waveforms

View File

@ -2,6 +2,10 @@
set +e set +e
# Settings:
# =========
export CC=cc
mkdir -p ./html/articles mkdir -p ./html/articles
./tools/main_page_generator.py ./articles | ./tools/mmd/build/multimarkdown > ./html/index.html ./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 for d in ./articles/*/; do
if [ -d "$d" ]; then if [ -d "$d" ]; then
if test -f "$d/make"; then if test -f "$d/make"; then
"$d/make" ("$d/make")
fi fi
if test -d "$d/.dynamic"; then if test -d "$d/.dynamic"; then
mkdir -p "./html/articles/$(basename -- $d)" mkdir -p "./html/articles/$(basename -- $d)"