From f6601c777066ad693446db28fac330d8248b1828 Mon Sep 17 00:00:00 2001 From: Liu Aleaxander Date: Mon, 5 Apr 2010 00:50:24 -0400 Subject: [PATCH] Add Makefile in doc Signed-off-by: Liu Aleaxander --- Makefile | 6 ++++-- doc/Makefile | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 doc/Makefile diff --git a/Makefile b/Makefile index 5dcbb25..9a9b06f 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ KERNEL_OBJS = boot/head.o init/init.o kernel/kernel.o fs/ext2_fs.o ${CC} -c -o $*.o $< -all: thunix.img +all: thunix.img doc thunix.img: boot.img kernel.img cat boot.img kernel.img > thunix.img @@ -39,6 +39,8 @@ boot.img: boot/bootsect.o kernel.img: ${KERNEL_OBJS} ${LD} ${LDFLAGS} -e pm_mode -Ttext 0x0000 -o $@ ${KERNEL_OBJS} +doc: + (cd doc; make) backup: clean (cp thunix.img ./image) @@ -53,7 +55,7 @@ clean: (cd init; make clean) (cd kernel; make clean) (cd fs; make clean) - + (cd doc; make clean) dep: (cd kernel; make dep) diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..914d32a --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,7 @@ +all: The-Design-and-Implementation-of-Thunix-Operating-System + +The-Design-and-Implementation-of-Thunix-Operating-System: + cat Chapter0-Abstract Chapter1-Introduction Chapter2-boot Chapter3-Protect-Mode Chapter4-IO-Lib Chapter5-Interrupt Chapter6-Driver Chapter7-File-System > $@ + +clean: + rm The-Design-and-Implementation-of-Thunix-Operating-System -- 2.11.4.GIT