makefile: add rule: iso creation && run_iso
This commit is contained in:
11
Makefile
11
Makefile
@ -31,6 +31,15 @@ $(NAME): $(OBJ)
|
||||
run: $(NAME)
|
||||
qemu-system-i386 -kernel build/$(NAME).bin
|
||||
|
||||
iso: $(NAME)
|
||||
mkdir -p isodir/boot/grub
|
||||
cp build/$(NAME).bin isodir/boot/bozOS.bin
|
||||
cp config/grub.cfg isodir/boot/grub/grub.cfg
|
||||
grub-mkrescue -o build/bozOS.iso isodir
|
||||
|
||||
run_iso: iso
|
||||
qemu-system-i386 -cdrom build/bozOS.iso
|
||||
|
||||
clean:
|
||||
make -C libbozo clean
|
||||
rm -rf obj/
|
||||
@ -41,4 +50,4 @@ fclean: clean
|
||||
|
||||
re: fclean all
|
||||
|
||||
.PHONY: all clean fclean re run
|
||||
.PHONY: all clean fclean re run iso run_iso
|
||||
|
Reference in New Issue
Block a user