From 3bbf216491b01a72398c26689c9ea14a5810adfc Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 20 Jun 2014 17:30:08 -0700 Subject: Add documentation and examples --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 80eece3..c06948b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ RUSTC := rustc +RUSTDOC := rustdoc BUILD := build LIB := $(BUILD)/$(shell $(RUSTC) --crate-file-name src/toml.rs) TEST := $(BUILD)/tomltest @@ -12,11 +13,14 @@ $(LIB): src/toml.rs @mkdir -p $(@D) $(RUSTC) -O $< --out-dir $(@D) --dep-info -check: $(TEST) +check: $(TEST) doctest $(TEST) $(TEST): src/toml.rs $(RUSTC) $< --test -o $@ --dep-info +doctest: $(LIB) + $(RUSTDOC) --test -L $(BUILD) src/toml.rs + clean: rm -rf $(BUILD) -- cgit v1.2.3