diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-02 11:47:04 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-02 11:47:04 +0100 |
commit | 38b74d5116d410d8a43434ce2564cd6f155cb62b (patch) | |
tree | 1b594a8f25168746353500d02f24624a0c934c9a | |
parent | 695f975ca73cdbfe8b9a50dc0ddf7788b2cca650 (diff) | |
download | os_skeleton-38b74d5116d410d8a43434ce2564cd6f155cb62b.zip os_skeleton-38b74d5116d410d8a43434ce2564cd6f155cb62b.tar.gz |
makefile: add simple subdir handling
-rw-r--r-- | makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |