docker/Makefile

24 lines
636 B
Makefile

SHELL := /bin/bash
# NOTE:
# Fedora likes `podman` instead of `docker` but most other
# distros (Debian, Manjaro) `docker` is easier to use.
.PHONY: clean
clean:
rm -rf ./dist
docker system prune -a
.PHONY: 64bit
64bit:
mkdir -p ./dist/64bit
echo pwd is $(shell pwd)
docker build -t doodle_64bit -f ./64bit.dockerfile .
docker run --rm --mount type=bind,src=$(shell pwd)/dist/64bit,dst=/mnt/export doodle_64bit
.PHONY: 32bit
32bit:
mkdir -p ./dist/32bit
echo pwd is $(shell pwd)
docker build -t doodle_32bit -f ./32bit.dockerfile .
docker run --rm --mount type=bind,src=$(shell pwd)/dist/32bit,dst=/mnt/export doodle_32bit