build: fix root makefile

This commit is contained in:
d0p1 🏳️‍⚧️ 2025-01-03 15:02:37 +01:00
parent dbf5dd9a91
commit 7f5c45b19d

View file

@ -48,11 +48,13 @@ endif
.PHONY: all .PHONY: all
all: $(TARGET) all: $(TARGET)
GOAL:=install
clean: GOAL:=clean
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
@echo "📁 $@" @echo "📁 $@"
@DESTDIR=$(SYSROOTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) @DESTDIR=$(SYSROOTDIR) $(MAKE) -C $@ $(GOAL)
.PHONY: stupid.iso .PHONY: stupid.iso
stupid.iso: $(SUBDIRS) stupid.iso: $(SUBDIRS)
@ -62,8 +64,8 @@ stupid.iso: $(SUBDIRS)
stupid.hdd: $(SUBDIRS) stupid.hdd: $(SUBDIRS)
dd if=/dev/zero of=$@ bs=1M count=0 seek=64 dd if=/dev/zero of=$@ bs=1M count=0 seek=64
mformat -L 12 -i $@ mformat -L 12 -i $@
# mcopy -i $@ boot/loader/stpdldr.sys ::/STPDLDR.SYS mcopy -i $@ boot/loader/stpdldr.sys ::/STPDLDR.SYS
# mcopy -i $@ kernel/vmstupid.sys ::/VMSTUPID.SYS mcopy -i $@ kernel/vmstupid.sys ::/VMSTUPID.SYS
.PHONY: stupid.tar.gz .PHONY: stupid.tar.gz
stupid.tar.gz: $(SUBDIRS) stupid.tar.gz: $(SUBDIRS)