summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-23 15:31:24 +0000
committermidipix <writeonce@midipix.org>2021-05-23 16:11:42 +0000
commit8956b275385989667021f2c1b4ef41d31af995a4 (patch)
tree609797f402a949e858da62bafe63f06844b4a8ae
parent9d230a7d2c43bdc3c3f9e99ac5d10fd1d54a5779 (diff)
downloadsbpython2-8956b275385989667021f2c1b4ef41d31af995a4.tar.bz2
sbpython2-8956b275385989667021f2c1b4ef41d31af995a4.tar.xz
build system: configure: config_copy(): support alternate make-file templates.
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
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