summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/makefile b/makefile
index a0500b7..421f963 100644
--- a/makefile
+++ b/makefile
@@ -8,7 +8,6 @@ out/disk.vdi: out/disk.img
VBoxManage convertfromraw out/disk.img out/disk.vdi --uuid a61929ed-3bf2-45ff-b98a-44f87c616dba
out/disk.img: out/kernel.bin out/boot.bin out/fs
- #TODO: have this regenerate after out/fs
mkdir -p obj
/sbin/mkfs.fat -C -f 1 -F 16 -n "PORTLAND OS" -R 65 -s 1 -S 512 obj/shadow.img 8192
echo -n -e '\xeb\x3c' > obj/jmp.bin
@@ -28,10 +27,15 @@ out/fs/bin/%: obj/%.elf
mkdir -p $(shell dirname $@)
objcopy -S $< $@
+out/fs/man/%.man: src/man/%.pre
+ mkdir -p $(shell dirname $@)
+ python3 tools/man-gen.py $< $@
+
out/fs: out/fs/bin/init out/fs/bin/meminfo out/fs/bin/highway \
out/fs/bin/hello out/fs/bin/dumptext out/fs/bin/dumphex \
- out/fs/bin/dirinfo out/fs/bin/fileman
- mkdir -p out/fs
+ out/fs/bin/dirinfo out/fs/bin/fileman out/fs/bin/manual \
+ out/fs/man/index.man out/fs/man/dev/kmemmap.man
+ touch out/fs
cp -r fs-skel/* out/fs/
obj/kernel/%.ko: src/kernel/%.c
@@ -98,4 +102,7 @@ obj/dirinfo.elf: obj/dirinfo/dirinfo.o obj/knob.so obj/c.rto
ld -T src/user/runtimes/c/elf.ld $^ -o $@
obj/fileman.elf: obj/fileman/fileman.o obj/knob.so obj/c.rto
+ ld -T src/user/runtimes/c/elf.ld $^ -o $@
+
+obj/manual.elf: obj/manual/manual.o obj/knob.so obj/c.rto
ld -T src/user/runtimes/c/elf.ld $^ -o $@ \ No newline at end of file