Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create required dirs #282

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Makefile.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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"; \
DanRoscigno marked this conversation as resolved.
Show resolved Hide resolved
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; }
Expand All @@ -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.
Expand Down