From 38b74d5116d410d8a43434ce2564cd6f155cb62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 2 Nov 2015 11:47:04 +0100 Subject: makefile: add simple subdir handling --- makefile | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.1-2-g2b99