Fixup makefile

This commit is contained in:
Quinten Kock 2020-11-30 01:43:28 +01:00
parent cbf223b837
commit 297a0c9b67
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ COMPONENTS = kernel
KERNEL_HDD = kornos.img
.PHONY: clean all $(COMPONENTS)
.DEFAULT_GOAL = $(KERNEL_HDD)
$(COMPONENTS):
$(MAKE) -C $@
@ -20,7 +21,7 @@ $(KERNEL_HDD): ext/limine/limine-install $(COMPONENTS)
parted -s $(KERNEL_HDD) mklabel msdos
parted -s $(KERNEL_HDD) mkpart primary 1 100%
echfs-utils -m -p0 $(KERNEL_HDD) quick-format 32768
for f in $(COMPONENTS); do echo "Installing $$f"; echfs-utils -m -p0 $@ import $$f/$$f $$f; done
@for f in $(COMPONENTS); do echo "Installing $$f"; echfs-utils -m -p0 $@ import $$f/$$f $$f; done
echfs-utils -m -p0 $(KERNEL_HDD) import ext/limine.cfg limine.cfg
ext/limine/limine-install ext/limine/limine.bin $(KERNEL_HDD)