diff --git a/.gitignore b/.gitignore index fdfdec9..fa74fc6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ *.dll *.dummy azure-test -build \ No newline at end of file +build +/doc diff --git a/Makefile.in b/Makefile.in index bfdb2f8..cb73f29 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,6 +7,9 @@ AR ?= ar RUSTC ?= rustc RUSTFLAGS ?= EXT_DEPS ?= +RUSTDOC ?= rustdoc +RUSTDOC_FLAGS ?= +RUSTDOC_TARGET ?= doc UNAME=$(shell uname) @@ -179,6 +182,12 @@ libazure.a: $(ALL_OBJS) check: azure-test ./azure-test +.PHONY: doc +doc: $(RUSTDOC_TARGET)/azure/index.html + +$(RUSTDOC_TARGET)/azure/index.html: azure.rc $(RUST_SRC) $(EXT_DEPS) + $(RUSTDOC) $(RUSTDOC_FLAGS) $< -o $(RUSTDOC_TARGET) + .PHONY: clean clean: rm -f azure-test *.o *.a */*/*.o */*/*/*.o *.so *.dylib *.rlib *.dll *.dummy