diff options
author | midipix <writeonce@midipix.org> | 2021-04-10 16:15:25 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-10 20:54:37 +0000 |
commit | 3d1334f62e4c06ef309da5e31944068b1319471b (patch) | |
tree | 98681d69635ec94fe1b7d5fd8e7d790ff2c1ead2 | |
parent | df3dbd706258c66d0d772330ea144782445cd1de (diff) | |
download | bfirm-3d1334f62e4c06ef309da5e31944068b1319471b.tar.bz2 bfirm-3d1334f62e4c06ef309da5e31944068b1319471b.tar.xz |
build system: configure: automatically detect make mode if not already set.
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -611,6 +611,15 @@ common_defaults() if [ -z "$mb_makemode" ]; then mb_makemode='posix' + + printf '%s\n%s\n%s\n\n%s\n\n' \ + 'ifeq (a,b)' \ + 'VAR = val' \ + 'endif' \ + 'all:' \ + | ${mb_make} -s -f - 2>/dev/null \ + && mb_makemode='modern' + fi # shell |