From e7dfb7dac8ecb9689f3d2538e48aedf9eee17f83 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 15 Apr 2022 09:03:21 +0300 Subject: chore(base-image): add a Makefile to make building smoother Sponsored-by: author --- base-image/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 base-image/Makefile (limited to 'base-image') diff --git a/base-image/Makefile b/base-image/Makefile new file mode 100644 index 0000000..7af2dd1 --- /dev/null +++ b/base-image/Makefile @@ -0,0 +1,16 @@ +qcows = bullseye-vm.qcow2 + +.SUFFIXES: .vmdb .img .qcow2 + +.vmdb.img: + sudo vmdb2 --log "$*.log" --output "$@" --rootfs-tarball "$*.tar.gz" --verbose "$<" + sudo chown "${USER}" "$@" "$*.tar.gz" "$*.log" + +.img.qcow2: + qemu-img convert -f raw -O qcow2 "$<" "$@" + +all: $(qcows) + +$(qcows): Makefile base-image.yml + +bullseye-vm.qcow2: bullseye-vm.vmdb -- cgit v1.2.1