Some build help

This commit is contained in:
2022-01-04 21:57:21 +01:00
parent d69a047172
commit e97f614cac
3 changed files with 97 additions and 5 deletions

View File

@@ -7,8 +7,13 @@ KERNELMAKE := TARGET=${TARGET} $(MAKE) -C src/kernel
DIST := $(BUILDROOT)/mittos.iso
SYSROOT := $(BUILDROOT)/sysroot
SYS_ITEMS := $(SYSROOT)/kernel
$(DIST): $(SYSROOT)/kernel
all: $(SYSROOT)/kernel
dist: $(DIST)
$(DIST): $(SYS_ITEMS)
$(BUILDROOT)/toolchain/setup-grub.sh
grub-mkrescue -o $@ $(SYSROOT)
@@ -17,7 +22,7 @@ ifeq ($(shell make -sqC src/kernel || echo 1), 1)
$(KERNELMAKE) install
endif
.PHONY: FORCE
.PHONY: all dist sysroot FORCE
clean:
rm -rf $(DIST)