Add ref makefile target
This commit is contained in:
parent
9804b5f548
commit
5183936de0
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ build
|
||||||
target
|
target
|
||||||
initfs/bin
|
initfs/bin
|
||||||
filesystem/bin
|
filesystem/bin
|
||||||
|
filesystem/ref
|
||||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -49,3 +49,6 @@
|
||||||
[submodule "syscall"]
|
[submodule "syscall"]
|
||||||
path = syscall
|
path = syscall
|
||||||
url = https://github.com/redox-os/syscall.git
|
url = https://github.com/redox-os/syscall.git
|
||||||
|
[submodule "crates/docgen"]
|
||||||
|
path = crates/docgen
|
||||||
|
url = https://github.com/redox-os/docgen.git
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -19,7 +19,7 @@ CARGO=RUSTC="$(RUSTC)" RUSTDOC="$(RUSTDOC)" cargo
|
||||||
CARGOFLAGS=--target $(TARGET).json --release -- --cfg redox
|
CARGOFLAGS=--target $(TARGET).json --release -- --cfg redox
|
||||||
|
|
||||||
# Default targets
|
# Default targets
|
||||||
.PHONY: all clean doc update qemu bochs drivers schemes coreutils extrautils netutils userutils wireshark FORCE
|
.PHONY: all clean doc ref update qemu bochs drivers schemes coreutils extrautils netutils userutils wireshark FORCE
|
||||||
|
|
||||||
all: $(KBUILD)/harddrive.bin
|
all: $(KBUILD)/harddrive.bin
|
||||||
|
|
||||||
|
@ -71,6 +71,12 @@ doc-kernel: $(KBUILD)/libkernel.a FORCE
|
||||||
doc-std: $(BUILD)/libstd.rlib 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
|
||||||
|
|
||||||
|
ref: FORCE
|
||||||
|
rm -rf filesystem/ref/
|
||||||
|
mkdir -p 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/
|
||||||
|
|
||||||
update:
|
update:
|
||||||
cargo update
|
cargo update
|
||||||
cargo update --manifest-path libstd/Cargo.toml
|
cargo update --manifest-path libstd/Cargo.toml
|
||||||
|
@ -420,10 +426,11 @@ extrautils: \
|
||||||
filesystem/bin/cur \
|
filesystem/bin/cur \
|
||||||
filesystem/bin/grep \
|
filesystem/bin/grep \
|
||||||
filesystem/bin/less \
|
filesystem/bin/less \
|
||||||
|
filesystem/bin/man \
|
||||||
filesystem/bin/mdless \
|
filesystem/bin/mdless \
|
||||||
filesystem/bin/mtxt \
|
filesystem/bin/mtxt \
|
||||||
filesystem/bin/rem \
|
filesystem/bin/rem \
|
||||||
#filesystem/bin/dmesg filesystem/bin/info filesystem/bin/man filesystem/bin/watch
|
#filesystem/bin/dmesg filesystem/bin/info filesystem/bin/watch
|
||||||
|
|
||||||
netutils: \
|
netutils: \
|
||||||
filesystem/bin/dhcpd \
|
filesystem/bin/dhcpd \
|
||||||
|
|
1
crates/docgen
Submodule
1
crates/docgen
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 2e1bcf2ab5a03d176e7c66ae79c31ffccdcda77a
|
Loading…
Reference in a new issue