From 50ced2a775c69c6ead092eff9c8e0a25907d511a Mon Sep 17 00:00:00 2001 From: Dan Roscigno Date: Mon, 16 Sep 2024 13:28:48 -0400 Subject: [PATCH 1/2] Update Makefile.sp Add prerequisites for `make sp-run` When I run `make run` I get two errors, missing _build dir and missing .doctrees dir. --- Makefile.sp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile.sp b/Makefile.sp index 0265d6bc..5a28aeae 100644 --- a/Makefile.sp +++ b/Makefile.sp @@ -52,6 +52,16 @@ $(VENVDIR): $(SPHINXDIR)/requirements.txt @. $(VENV); pip list --local --format=freeze > $(VENVDIR)/pip_list.txt @touch $(VENVDIR) +# sp-run depends on $(BUILDDIR) +$(BUILDDIR): + @echo "... creating buid directory"; \ + mkdir -p $(BUILDDIR) + +# sp-run depends on $(SPHINXDIR)/.doctrees +$(SPHINXDIR)/.doctrees: + @echo "... creating doctrees directory"; \ + mkdir -p $(SPHINXDIR)/.doctrees + sp-woke-install: @type woke >/dev/null 2>&1 || \ { echo "Installing \"woke\" snap... \n"; sudo snap install woke; } @@ -65,7 +75,7 @@ sp-pa11y-install: sp-install: $(VENVDIR) -sp-run: sp-install +sp-run: sp-install $(BUILDDIR) $(SPHINXDIR)/.doctrees . $(VENV); sphinx-autobuild -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) # Doesn't depend on $(BUILDDIR) to rebuild properly at every run. From 5bd65aad6a26b71847806d48a4ba0d9d71c3e835 Mon Sep 17 00:00:00 2001 From: Dan Roscigno Date: Mon, 16 Sep 2024 14:34:37 -0400 Subject: [PATCH 2/2] Update Makefile.sp typo --- Makefile.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.sp b/Makefile.sp index 5a28aeae..a571b18f 100644 --- a/Makefile.sp +++ b/Makefile.sp @@ -54,7 +54,7 @@ $(VENVDIR): $(SPHINXDIR)/requirements.txt # sp-run depends on $(BUILDDIR) $(BUILDDIR): - @echo "... creating buid directory"; \ + @echo "... creating build directory"; \ mkdir -p $(BUILDDIR) # sp-run depends on $(SPHINXDIR)/.doctrees