feat(make): add run and debug rules
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
parent
bb7334e343
commit
be3cc35e1d
8
Makefile
8
Makefile
@ -13,6 +13,12 @@ SRC = src/lib.rs
|
|||||||
|
|
||||||
all: $(ISO)
|
all: $(ISO)
|
||||||
|
|
||||||
|
run: $(ISO)
|
||||||
|
qemu-system-x86_64 -cdrom $<
|
||||||
|
|
||||||
|
debug: $(ISO)
|
||||||
|
bochs -q
|
||||||
|
|
||||||
$(ISO): install
|
$(ISO): install
|
||||||
grub-mkrescue -o $@ $(INSTALL_ROOT)
|
grub-mkrescue -o $@ $(INSTALL_ROOT)
|
||||||
|
|
||||||
@ -38,4 +44,4 @@ clean:
|
|||||||
$(RM) julios.iso
|
$(RM) julios.iso
|
||||||
$(RM) -r iso
|
$(RM) -r iso
|
||||||
|
|
||||||
.PHONY: $(INSTALL_ROOT) install clean all
|
.PHONY: $(INSTALL_ROOT) install clean all run debug
|
||||||
|
Loading…
Reference in New Issue
Block a user