CHEESED_DIR ?= ../cheesed

.PHONY: all audit check clean fetch image image-linux run

all: image

fetch:
	./scripts/fetch-sources.sh

image:
	CHEESED_DIR="$(CHEESED_DIR)" ./scripts/build-in-container.sh

image-linux:
	CHEESED_DIR="$(CHEESED_DIR)" ./scripts/build-image.sh

run: image
	./scripts/run-qemu.sh

check: image
	./scripts/check-c1.sh

audit: image
	@printf '%s\n' "static ELF audit passed during the container build"

clean:
	rm -f build/vmlinuz-virt build/mouse-initramfs.cpio.gz
