.PHONY: all build test clean all: build build: rm -rf build rm -rf kernel/target mkdir build i686-elf-as -o build/boot.o boot.s cd kernel; cargo build cp kernel/target/i686-unknown-bare/debug/kernel.elf build/geos.bin mkdir -p build/isodir/boot/grub cp build/geos.bin build/isodir/boot/geos.bin cp grub.cfg build/isodir/boot/grub/grub.cfg grub-mkrescue -o build/geos.iso build/isodir test: build qemu-system-i386 -cdrom build/geos.iso clean: rm -rf kernel/target rm -rf build