Only document kernel and std
This commit is contained in:
parent
bfa561c5ab
commit
1585e67f1b
60
Makefile
60
Makefile
|
@ -23,6 +23,8 @@ CARGOFLAGS=--target $(TARGET).json -- -C opt-level=s --cfg redox
|
||||||
|
|
||||||
all: $(KBUILD)/harddrive.bin
|
all: $(KBUILD)/harddrive.bin
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cargo clean
|
cargo clean
|
||||||
cargo clean --manifest-path libstd/Cargo.toml
|
cargo clean --manifest-path libstd/Cargo.toml
|
||||||
|
@ -56,65 +58,17 @@ 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: \
|
||||||
doc-kernel \
|
doc-kernel \
|
||||||
doc-std \
|
doc-std
|
||||||
doc-ahcid \
|
|
||||||
doc-e1000d \
|
|
||||||
doc-ps2d \
|
|
||||||
doc-pcid \
|
|
||||||
doc-rtl8168d \
|
|
||||||
doc-vesad \
|
|
||||||
doc-acid \
|
|
||||||
doc-init \
|
|
||||||
doc-coreutils \
|
|
||||||
doc-extrautils \
|
|
||||||
doc-netutils \
|
|
||||||
doc-orbutils \
|
|
||||||
doc-pkgutils \
|
|
||||||
doc-userutils \
|
|
||||||
doc-smith \
|
|
||||||
doc-ethernetd \
|
|
||||||
doc-example \
|
|
||||||
doc-ipd \
|
|
||||||
doc-orbital \
|
|
||||||
doc-ptyd \
|
|
||||||
doc-randd \
|
|
||||||
doc-tcpd \
|
|
||||||
doc-udpd
|
|
||||||
|
|
||||||
#FORCE to let cargo decide if docs need updating
|
#FORCE to let cargo decide if docs need updating
|
||||||
#all to make sure all dependencies are built
|
doc-kernel: $(KBUILD)/libkernel.a FORCE
|
||||||
doc-kernel: $(KBUILD)/libkernel.a all FORCE
|
|
||||||
$(KCARGO) doc --target $(KTARGET).json
|
$(KCARGO) doc --target $(KTARGET).json
|
||||||
mkdir -p build/doc
|
|
||||||
rm -rf build/doc/kernel
|
|
||||||
mv target/$(KTARGET)/doc build/doc/kernel
|
|
||||||
|
|
||||||
doc-std: $(BUILD)/libstd.rlib all FORCE
|
doc-std: $(BUILD)/libstd.rlib FORCE
|
||||||
$(CARGO) doc --target $(TARGET).json --manifest-path libstd/Cargo.toml
|
$(CARGO) doc --target $(TARGET).json --manifest-path libstd/Cargo.toml
|
||||||
mkdir -p build/doc
|
|
||||||
rm -rf build/doc/std
|
|
||||||
mv libstd/target/$(TARGET)/doc build/doc/std
|
|
||||||
|
|
||||||
doc-%: drivers/%/Cargo.toml all FORCE
|
|
||||||
$(CARGO) doc --target $(TARGET).json --manifest-path $<
|
|
||||||
mkdir -p build/doc
|
|
||||||
rm -rf build/doc/$*
|
|
||||||
mv drivers/$*/target/$(TARGET)/doc build/doc/$*
|
|
||||||
|
|
||||||
doc-%: programs/%/Cargo.toml all FORCE
|
|
||||||
$(CARGO) doc --target $(TARGET).json --manifest-path $<
|
|
||||||
mkdir -p build/doc
|
|
||||||
rm -rf build/doc/$*
|
|
||||||
mv programs/$*/target/$(TARGET)/doc build/doc/$*
|
|
||||||
|
|
||||||
doc-%: schemes/%/Cargo.toml all FORCE
|
|
||||||
$(CARGO) doc --target $(TARGET).json --manifest-path $<
|
|
||||||
mkdir -p build/doc
|
|
||||||
rm -rf build/doc/$*
|
|
||||||
mv schemes/$*/target/$(TARGET)/doc build/doc/$*
|
|
||||||
|
|
||||||
update:
|
update:
|
||||||
cargo update
|
cargo update
|
||||||
|
@ -147,8 +101,6 @@ update:
|
||||||
cargo update --manifest-path schemes/tcpd/Cargo.toml
|
cargo update --manifest-path schemes/tcpd/Cargo.toml
|
||||||
cargo update --manifest-path schemes/udpd/Cargo.toml
|
cargo update --manifest-path schemes/udpd/Cargo.toml
|
||||||
|
|
||||||
FORCE:
|
|
||||||
|
|
||||||
# Emulation
|
# Emulation
|
||||||
QEMU=SDL_VIDEO_X11_DGAMOUSE=0 qemu-system-$(ARCH)
|
QEMU=SDL_VIDEO_X11_DGAMOUSE=0 qemu-system-$(ARCH)
|
||||||
QEMUFLAGS=-serial mon:stdio -d cpu_reset -d guest_errors
|
QEMUFLAGS=-serial mon:stdio -d cpu_reset -d guest_errors
|
||||||
|
|
Loading…
Reference in a new issue