Modularise makefiles

This commit is contained in:
Jeremy Soller 2017-01-05 14:07:20 -07:00
commit e3f3f27fbc

13
mk/doc.mk Normal file
View file

@ -0,0 +1,13 @@
doc: $(KBUILD)/libkernel.a $(BUILD)/libstd.rlib FORCE
$(KCARGO) doc --target $(KTARGET) --manifest-path kernel/Cargo.toml
$(CARGO) doc --target $(TARGET) --manifest-path rust/src/libstd/Cargo.toml
ref: FORCE
rm -rf filesystem/ref/
mkdir -p filesystem/ref/
#cargo run --manifest-path crates/docgen/Cargo.toml -- programs/binutils/src/bin/ filesystem/ref/
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/coreutils/src/bin/ filesystem/ref/
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/extrautils/src/bin/ filesystem/ref/
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/netutils/src/ filesystem/ref/
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/pkgutils/src/ filesystem/ref/
cargo run --manifest-path crates/docgen/Cargo.toml -- programs/userutils/src/ filesystem/ref/