dockcross/tools/build/functions/makefile_fn.sh
Bensuperpc cb4653ac7a Add scripts
Add scripts

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-07-03 19:48:41 +02:00

16 lines
419 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
makefile_build () {
local image=$1
shift 1
echo "Pulling dockcross/$image:latest"
docker pull dockcross/$image:latest
echo "Make script dockcross-$image"
docker run --rm dockcross/$image:latest > ./dockcross-$image
chmod +x ./dockcross-$image
echo "Build build-$image"
./dockcross-$image bash -c 'make CXX=$CXX CC=$CC AR=$AR AS=$AS CPP=$CPP FC=$FC'
}