docker/Makefile

24 lines
636 B
Makefile
Raw Normal View History

2020-06-05 08:00:54 +00:00
SHELL := /bin/bash
2021-07-12 01:14:52 +00:00
# NOTE:
# Fedora likes `podman` instead of `docker` but most other
# distros (Debian, Manjaro) `docker` is easier to use.
2020-06-05 08:00:54 +00:00
.PHONY: clean
clean:
2020-11-27 21:45:21 +00:00
rm -rf ./dist
2021-07-12 01:14:52 +00:00
docker system prune -a
2020-06-05 08:00:54 +00:00
2021-11-06 03:03:40 +00:00
.PHONY: 64bit
64bit:
mkdir -p ./dist/64bit
2020-06-05 08:00:54 +00:00
echo pwd is $(shell pwd)
2021-11-06 03:03:40 +00:00
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