Files
docker-deployment/bin/make

16 lines
300 B
Plaintext

FILE=$DOCKER_HOME/images/$1.mk
if [[ ! -e $FILE ]]; then
DELETE=true
FILE="$(mktemp)"
cat <<- EOF > $FILE
include \$(DOCKER_HOME)/build/Makefile
NAME = $1
VERSION = latest
build: $1
EOF
fi
make -f $FILE $2
if [ ! -z ${DELETE+x} ]; then
rm $FILE
fi