11 lines
328 B
Bash
Raw Normal View History

#!/bin/bash
2021-03-11 00:10:32 +01:00
build_in_docker() {
docker run -t \
--mount type=bind,src=`realpath $(pwd)`,target="/src" \
--mount type=bind,src=`realpath "$(pwd)/../libsc64"`,target="/src/libsc64" \
$1 /bin/bash -c "cd /src && make clean && make -f $2 all"
}
2021-02-09 23:58:02 +01:00
2021-03-11 00:10:32 +01:00
build_in_docker "anacierdem/libdragon:latest" "Makefile"