diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-06-20 17:30:08 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-20 17:30:08 -0700 |
commit | 3bbf216491b01a72398c26689c9ea14a5810adfc (patch) | |
tree | e97a676a9a706b04c9666db1196a36c61d9d35ba /Makefile | |
parent | 019cd4122b9198c1706bd70de31be0636cbfda92 (diff) | |
download | milf-rs-3bbf216491b01a72398c26689c9ea14a5810adfc.tar.gz milf-rs-3bbf216491b01a72398c26689c9ea14a5810adfc.zip |
Add documentation and examples
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |