Skip to content

Commit

Permalink
Need to build crate before testing doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
KokaKiwi committed May 7, 2014
1 parent 8bf6312 commit 4189d9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust.mk
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ endif

ifneq ($$($(1)_DONT_DOC),1)
### Crate `doc` rule
ifeq ($$($(1)_TEST_DOC),1)
#### Need to build crate before testing doc
doc_$(1): $$($(1)_NAME)
endif
doc_$(1):
ifeq ($$($(1)_TEST_DOC),1) # Test doc before generating it if enabled.
$$(RUSTDOC) $$(RUSTDOCFLAGS) $$($(1)_RUSTDOCFLAGS) --test $$($(1)_ROOT)
Expand Down

0 comments on commit 4189d9c

Please sign in to comment.