From ce09d6bc0d650b73ee2dd974faaf2994bf241770 Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 12 2021 10:45:04 +0000 Subject: build system: cfgtest: added cfgtest_{makevar|cflags|ldflags}_set(). --- diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh index 4a50e8f..80ef06d 100644 --- a/sofort/cfgtest/cfgtest.sh +++ b/sofort/cfgtest/cfgtest.sh @@ -164,6 +164,21 @@ cfgtest_entity_size_prolog() } +cfgtest_makevar_set() +{ + if [ -n "${@}" ]; then + mb_internal_str='= ' + else + mb_internal_str='=' + fi + + printf '%-25s%s%s\n' "$mb_cfgtest_makevar" "$mb_internal_str" "${@}" \ + >> $mb_pwd/cfgdefs.mk + + unset cfgtest_internal_unit_test +} + + cfgtest_makevar_append() { mb_internal_str='+='