Improve Makefile

This commit is contained in:
Alex Kotov 2021-12-15 20:28:11 +05:00
parent f476a455cf
commit dcaa3e91e7
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,9 @@
all: run
GRUBCFG = rootfs/boot/grub/grub.cfg
KERNEL = rootfs/boot/tailix.multiboot2
ROOTFS = rootfs
GRUBCFG = $(ROOTFS)/boot/grub/grub.cfg
KERNEL = $(ROOTFS)/boot/tailix.multiboot2
IMAGE = image.iso
@ -20,7 +22,7 @@ clean:
make -C kernel clean
$(IMAGE): $(GRUBCFG) $(KERNEL)
grub-mkrescue rootfs -o $@
grub-mkrescue $(ROOTFS) -o $@
$(KERNEL): kernel/tailix.multiboot2
cp $< $@