2023-01-15 19:25:25 +00:00
|
|
|
.DEFAULT_GOAL := all
|
2023-06-29 04:09:31 +00:00
|
|
|
TOPDIR := $(CURDIR)
|
|
|
|
export TOPDIR
|
2020-05-06 10:40:10 +00:00
|
|
|
|
2023-06-29 04:09:31 +00:00
|
|
|
SUBDIR := thirdparty lib bin kernel
|
2020-05-06 10:40:10 +00:00
|
|
|
|
2023-07-02 14:47:18 +00:00
|
|
|
CLEANFILES += stupid.iso stupid.tar.gz
|
|
|
|
|
2023-06-29 04:09:31 +00:00
|
|
|
.PHONY: docs
|
|
|
|
docs:
|
|
|
|
-mkdir -p docs/html
|
|
|
|
naturaldocs -p docs/config -img docs/img -xi tmp -i . -o HTML docs/html
|
|
|
|
cp docs/img/favicon.ico docs/html/
|
2020-05-06 10:40:10 +00:00
|
|
|
|
2023-07-02 14:47:18 +00:00
|
|
|
.PHONY: stupid.iso
|
|
|
|
stupid.iso:
|
|
|
|
$(MAKE) all
|
|
|
|
DESTDIR=$(TOPDIR)/sysroot $(MAKE) install
|
|
|
|
$(TOPDIR)/tools/create-iso $@ sysroot
|
|
|
|
|
|
|
|
.PHONY: stupid.tar.gz
|
|
|
|
stupid.tar.gz:
|
|
|
|
$(MAKE) all
|
|
|
|
DESTDIR=$(TOPDIR)/sysroot $(MAKE) install
|
|
|
|
tar -czvf $@ sysroot
|
|
|
|
|
|
|
|
run: stupid.iso
|
|
|
|
qemu-system-i386 -cdrom $< -serial stdio
|
|
|
|
|
2023-06-29 04:09:31 +00:00
|
|
|
include $(TOPDIR)/share/mk/stupid.subdir.mk
|
2023-07-02 14:47:18 +00:00
|
|
|
include $(TOPDIR)/share/mk/stupid.clean.mk
|