Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cea4bd4816
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (26 sloc) 0.713 kb
RUSTC=rustc
RUSTC_OPTS=
RUSTDOC=rustdoc
RUSTDOC_OPTS=--output-format html
RUSTDOC_CRATE=--output-dir . --output-style doc-per-crate
RUSTDOC_MOD=--output-dir doc --output-style doc-per-mod
CRATE=templates.rc
SOURCES=$(wildcard *.rs)
INPUTS=$(CRATE) $(SOURCES)
CRATE_DOCS=templates.html
.PHONY: all doc crate-doc mod-doc clean
lib: $(INPUTS)
$(RUSTC) $(RUSTC_OPTS) $(CRATE)
all: lib crate-doc mod-doc
doc: crate-doc mod-doc
crate-doc: $(CRATE_DOCS)
mod-doc: doc/index.html
%.html: %.rc
$(RUSTDOC) $(RUSTDOC_OPTS) $(RUSTDOC_CRATE) "$*.rc"
doc/index.html: $(INPUTS)
mkdir -p doc
$(RUSTDOC) $(RUSTDOC_OPTS) $(RUSTDOC_MOD) $(CRATE)
clean:
-rm *.o *.dylib *.html doc/*.html
-rm -rf *.dSYM
-rmdir doc
Jump to Line
Something went wrong with that request. Please try again.