diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-03-04 22:47:43 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-03-04 22:47:43 +0000 |
| commit | 6c625658d8870cd9574d2a3ec94b874c95145a7f (patch) | |
| tree | 831273a35891b891cf08b1350c9bfff3c3d68752 | |
| parent | f61da8be06fdfebc598cba783e78117319231140 (diff) | |
Makefile
| -rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..76204f7 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +.PHONY: all clean $(DIRS_CLEAN) + +BOOT_DIR := boot +BOOT_FILE := $(BOOT_DIR)/kjarna.efi + +SERVICE_DIR := service +SERVICE_FILE := $(SERVICE_DIR)/kjarna.os + +TARGETS := $(SERVICE_FILE) $(BOOT_FILE) +DIRS := $(SERVICE_DIR) $(BOOT_DIR) + +DIRS_CLEAN := $(addprefix clean-,$(DIRS)) +DIRS_DISTCLEAN := $(addprefix distclean-,$(DIRS)) + +all: $(TARGETS) + +clean: $(DIRS_CLEAN) +distclean: $(DIRS_DISTCLEAN) + +$(DIRS_CLEAN): clean-%: + $(MAKE) -C $* clean + +$(DIRS_DISTCLEAN): distclean-%: + $(MAKE) -C $* distclean + +$(TARGETS): + $(MAKE) -C $(dir $@) + + |
