From c0ade8f8ea7f4a3a0b1f4ae69fb974e7f83c9b3c Mon Sep 17 00:00:00 2001 From: midipix Date: May 23 2021 16:12:12 +0000 Subject: build system: configure: config_copy(): support alternate make-file templates. --- diff --git a/configure b/configure index 8424799..d7c5121 100755 --- a/configure +++ b/configure @@ -747,6 +747,7 @@ config_copy() mb_var_defs= mb_sed_substs= + mb_template="${1:-$mb_project_dir/Makefile.in}" mb_vars=$(cut -d'=' -f1 "$sfrt_config_vars" "$sfrt_opt_vars" \ | grep -v '^#'); @@ -763,9 +764,9 @@ config_copy() eval mb_var_defs='"$mb_var_defs "$mb_var_def' done - eval sed $mb_sed_substs $mb_project_dir/Makefile.in \ - | eval m4 $mb_var_defs - \ - | sed -e 's/[[:blank:]]*$//g' \ + eval sed $mb_sed_substs $mb_template \ + | eval m4 $mb_var_defs - \ + | sed -e 's/[[:blank:]]*$//g' \ > $mb_pwd/Makefile.tmp output_step_epilog