docker/Makefile

29 lines
724 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.
2022-01-04 05:03:31 +00:00
# ln -s /usr/bin/podman ~/bin/docker
2021-07-12 01:14:52 +00:00
2020-06-05 08:00:54 +00:00
.PHONY: clean
clean:
2020-11-27 21:45:21 +00:00
rm -rf ./dist
2022-09-25 00:48:48 +00:00
podman system prune -a
2022-01-09 01:35:11 +00:00
podman system reset
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)
2022-09-25 00:48:48 +00:00
podman build -t doodle_64bit -f ./64bit.dockerfile .
podman run --rm --mount type=bind,src=$(shell pwd)/dist/64bit,dst=/mnt/export doodle_64bit
2021-11-06 03:03:40 +00:00
.PHONY: 32bit
32bit:
mkdir -p ./dist/32bit
echo pwd is $(shell pwd)
2022-09-25 00:48:48 +00:00
podman build -t doodle_32bit -f ./32bit.dockerfile .
podman run --rm --mount type=bind,src=$(shell pwd)/dist/32bit,dst=/mnt/export doodle_32bit
.PHONY: all
all: 64bit 32bit