Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from servo/rustdoc
Browse files Browse the repository at this point in the history
Generate documentation with rustdoc
  • Loading branch information
metajack committed Aug 4, 2014
2 parents ac87a88 + aa718dc commit 7491a23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*~
*~
/doc
9 changes: 9 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ VPATH=%VPATH%

RUSTC ?= rustc
RUSTFLAGS ?=
RUSTDOC ?= rustdoc
RUSTDOC_FLAGS ?=
RUSTDOC_TARGET ?= doc

RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')

Expand All @@ -19,6 +22,12 @@ xlib-test: lib.rs $(RUST_SRC)
check: xlib-test
./xlib-test $(TEST)

.PHONY: doc
doc: $(RUSTDOC_TARGET)/xlib/index.html

$(RUSTDOC_TARGET)/xlib/index.html: lib.rs $(RUST_SRC)
$(RUSTDOC) $(RUSTDOC_FLAGS) $< -o $(RUSTDOC_TARGET)

.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.rlib *.dll *.dummy *-test

0 comments on commit 7491a23

Please sign in to comment.