Add makefile targets for generating other cargo docs (#17)
This commit is contained in:
parent
57ab8167a0
commit
03db207100
18
Makefile
18
Makefile
|
@ -49,10 +49,26 @@ clean:
|
||||||
rm -rf initfs/bin
|
rm -rf initfs/bin
|
||||||
rm -rf filesystem/bin
|
rm -rf filesystem/bin
|
||||||
rm -rf build
|
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
|
$(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:
|
update:
|
||||||
cargo update
|
cargo update
|
||||||
cargo update --manifest-path libstd/Cargo.toml
|
cargo update --manifest-path libstd/Cargo.toml
|
||||||
|
|
Loading…
Reference in a new issue