From be3cc35e1d5da0272c54e4f6191be5faca2c0a78 Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Tue, 30 Nov 2021 07:05:25 +0100 Subject: [PATCH] feat(make): add run and debug rules Signed-off-by: Julien CLEMENT --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eff9e75..6a5aea7 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,12 @@ SRC = src/lib.rs all: $(ISO) +run: $(ISO) + qemu-system-x86_64 -cdrom $< + +debug: $(ISO) + bochs -q + $(ISO): install grub-mkrescue -o $@ $(INSTALL_ROOT) @@ -38,4 +44,4 @@ clean: $(RM) julios.iso $(RM) -r iso -.PHONY: $(INSTALL_ROOT) install clean all +.PHONY: $(INSTALL_ROOT) install clean all run debug