Automatically update and init submodules
[docs.git] / Makefile
index 8fbbce784f537bb630d1d4cc026f21cf704fd95a..b74499bfaa6975755a6ddd70c73873bc2bd3c057 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ clean:
        rm -rf $(BUILDDIR)/*
 
 .PHONY: html
-html:
+html: _submodules
        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
        @echo
        @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
@@ -221,3 +221,6 @@ pseudoxml:
        $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
        @echo
        @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
+
+_submodules:
+       git submodule update --init