29 lines
724 B
Makefile
29 lines
724 B
Makefile
|
SHELL := /bin/bash
|
||
|
|
||
|
# NOTE:
|
||
|
# Fedora likes `podman` instead of `docker` but most other
|
||
|
# distros (Debian, Manjaro) `docker` is easier to use.
|
||
|
# ln -s /usr/bin/podman ~/bin/docker
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -rf ./dist
|
||
|
podman system prune -a
|
||
|
podman system reset
|
||
|
|
||
|
.PHONY: 64bit
|
||
|
64bit:
|
||
|
mkdir -p ./dist/64bit
|
||
|
echo pwd is $(shell pwd)
|
||
|
podman build -t doodle_64bit -f ./64bit.dockerfile .
|
||
|
podman 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)
|
||
|
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
|