summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/mxe-activate3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mxe-activate b/tools/mxe-activate
index 6071d0f..2b54732 100644
--- a/tools/mxe-activate
+++ b/tools/mxe-activate
@@ -2,6 +2,7 @@ export MXE_DIR=`pwd`
export PATH=$MXE_DIR/usr/bin:$PATH
MAKE=`gmake --help >/dev/null 2>&1 && echo g`make
SED=`gsed --help >/dev/null 2>&1 && echo g`sed
+MXE_TARGET_LIST="`grep 'MXE_TARGET_LIST.*:=' Makefile | $SED -n 's,^.*:= \(.*\)$,\1,p'`"
alias mxe='$MAKE -C $MXE_DIR --no-print-directory'
@@ -15,7 +16,7 @@ _mxe()
prev="${COMP_WORDS[COMP_CWORD-1]}"
pkgs=$( for x in `ls -l $MXE_DIR/src/*.mk | $SED -n 's,.*src/\(.*\)\.mk,\1,p'`; do echo ${x} ; done )
- tgts="i686-pc-mingw32 x86_64-w64-mingw32 i686-w64-mingw32"
+ tgts=$MXE_TARGET_LIST
case "${cur}" in
build-only-*_*)