StupidOS/Makefile

32 lines
672 B
Makefile
Raw Normal View History

2023-01-15 19:25:25 +00:00
.DEFAULT_GOAL := all
TOPDIR := $(CURDIR)
export TOPDIR
2020-05-06 10:40:10 +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
.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
include $(TOPDIR)/share/mk/stupid.subdir.mk
2023-07-02 14:47:18 +00:00
include $(TOPDIR)/share/mk/stupid.clean.mk