From 03db2071008b07692cc7f144339e6a7b4fb076ea Mon Sep 17 00:00:00 2001 From: Thomas Levy Date: Tue, 18 Oct 2016 09:52:33 -0400 Subject: [PATCH] Add makefile targets for generating other cargo docs (#17) --- Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8462dbb..bc39f79 100644 --- a/Makefile +++ b/Makefile @@ -49,10 +49,26 @@ clean: rm -rf initfs/bin rm -rf filesystem/bin rm -rf build +#skipping doc-ion, doc-coreutils, and doc-redoxfs because they fail +doc: doc-kernel doc-std doc-ahcid doc-e1000d doc-ps2d doc-pcid doc-vesad doc-init doc-extrautils doc-netutils doc-orbutils doc-extrautils doc-userutils doc-smith doc-ethernetd doc-example doc-ipd doc-orbital doc-tcpd doc-udpd -doc: $(KBUILD)/libkernel.a +#FORCE to let cargo decide if docs need updating +#all to make sure all dependencies are built +doc-kernel: $(KBUILD)/libkernel.a all FORCE $(KCARGO) doc --target $(KTARGET).json +doc-std: $(BUILD)/libstd.rlib all FORCE + $(CARGO) doc --target $(TARGET).json --manifest-path libstd/Cargo.toml + +doc-%: drivers/%/Cargo.toml all FORCE + $(CARGO) doc --target $(TARGET).json --manifest-path $< + +doc-%: programs/%/Cargo.toml all FORCE + $(CARGO) doc --target $(TARGET).json --manifest-path $< + +doc-%: schemes/%/Cargo.toml all FORCE + $(CARGO) doc --target $(TARGET).json --manifest-path $< + update: cargo update cargo update --manifest-path libstd/Cargo.toml