Add ref makefile target

This commit is contained in:
Jeremy Soller 2016-11-08 09:00:21 -07:00
parent 9804b5f548
commit 5183936de0
4 changed files with 14 additions and 2 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ build
target
initfs/bin
filesystem/bin
filesystem/ref

3
.gitmodules vendored
View file

@ -49,3 +49,6 @@
[submodule "syscall"]
path = syscall
url = https://github.com/redox-os/syscall.git
[submodule "crates/docgen"]
path = crates/docgen
url = https://github.com/redox-os/docgen.git

View file

@ -19,7 +19,7 @@ CARGO=RUSTC="$(RUSTC)" RUSTDOC="$(RUSTDOC)" cargo
CARGOFLAGS=--target $(TARGET).json --release -- --cfg redox
# 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
@ -71,6 +71,12 @@ doc-kernel: $(KBUILD)/libkernel.a FORCE
doc-std: $(BUILD)/libstd.rlib FORCE
$(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:
cargo update
cargo update --manifest-path libstd/Cargo.toml
@ -420,10 +426,11 @@ extrautils: \
filesystem/bin/cur \
filesystem/bin/grep \
filesystem/bin/less \
filesystem/bin/man \
filesystem/bin/mdless \
filesystem/bin/mtxt \
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: \
filesystem/bin/dhcpd \

1
crates/docgen Submodule

@ -0,0 +1 @@
Subproject commit 2e1bcf2ab5a03d176e7c66ae79c31ffccdcda77a