From cb311c498154f8be31ae0bc61ee5813f0bec318b Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 18 Sep 2022 20:20:51 +0200 Subject: [PATCH] Add initrd/boot/moon.elf and Luna.iso to the clean Makefile target --- Makefile | 5 ++++- kernel/Makefile | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8a03ac55..f0dbb352 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ build: $(LUNA_ROOT)/kernel/bin/moon.elf -clean: moon-clean +clean: moon-clean initrd-clean + +build-clean: + rm initrd/boot/moon.elf Luna.iso install: $(LUNA_ROOT)/initrd/boot/moon.elf diff --git a/kernel/Makefile b/kernel/Makefile index a267c8ba..561776c1 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -70,6 +70,7 @@ $(MOON_BIN)/moon.elf: $(OBJS) moon-clean: rm -rf $(MOON_OBJ)/* + rm -rf $(MOON_BIN)/* $(LUNA_ROOT)/initrd/boot/moon.elf: $(MOON_BIN)/moon.elf @mkdir -p $(@D)