32 lines
493 B
Makefile
32 lines
493 B
Makefile
.DEFAULT_GOAL :=
|
|
.PHONY: default
|
|
default: \
|
|
out/airgap.iso
|
|
|
|
.PHONY: vm
|
|
vm: vm-bios
|
|
|
|
.PHONY: vm-bios
|
|
vm-bios: out/airgap.iso
|
|
qemu-system-x86_64 \
|
|
-m 4G \
|
|
-machine pc \
|
|
-serial stdio \
|
|
-cdrom "out/airgap.iso"
|
|
|
|
.PHONY: vm-efi
|
|
vm-efi:
|
|
qemu-system-x86_64 \
|
|
-m 4G \
|
|
-machine pc \
|
|
-serial stdio \
|
|
-bios /usr/share/ovmf/OVMF.fd \
|
|
-cdrom "out/airgap.iso"
|
|
|
|
out/airgap.iso: Containerfile
|
|
docker build \
|
|
--progress=plain \
|
|
--output type=local,dest=out \
|
|
-f Containerfile \
|
|
.
|