summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefile b/makefile
index ffe85c3..fd06b87 100644
--- a/makefile
+++ b/makefile
@@ -1,3 +1,5 @@
+SUBDIR=kernel
+
all: run
run: create_iso
@@ -7,8 +9,11 @@ create_iso: cpy
grub-mkrescue -o mini_kernel/mini_kernel.iso mini_kernel
cpy:
+ cd $(SUBDIR); $(MAKE) run
cp grub/grub.cfg mini_kernel/
cp kernel/kernel.elf mini_kernel/
+
clean:
+ cd $(SUBDIR); $(MAKE) clean
-rm mini_kernel/*.iso mini_kernel/*.cfg mini_kernel/*.elf 2>/dev/null