File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -8,23 +8,24 @@ BUILDDIR = build
8
8
all : clean html
9
9
10
10
help :
11
- @$(SPHINXBUILD ) -M help " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
11
+ @source venv/bin/activate && \
12
+ $(SPHINXBUILD ) -M help " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
12
13
livehtml :
13
- @$(SPHINXAUTOBUILD ) --watch ../repos --watch ../commands " $( SOURCEDIR) " " $( BUILDDIR) /html" $(SPHINXOPTS ) $(0 )
14
+ @source venv/bin/activate && \
15
+ $(SPHINXAUTOBUILD ) --watch ../repos --watch ../commands " $( SOURCEDIR) " " $( BUILDDIR) /html" $(SPHINXOPTS ) $(0 )
14
16
15
17
# Prepare virtualenv similar to the environment used during build on Read The Docs and install required packages
16
18
env :
17
- PY_VER=$$(sed -n -e 's/^\s*python:\s"\(.*\ ) " /\1/p' ../.readthedocs.yaml); \
18
- echo $$ PY_VER; \
19
+ @PY_VER=$$(sed -n -e 's/^\s*python:\s"\(.*\ ) " /\1/p' ../.readthedocs.yaml); \
19
20
rm -fr ./venv; \
20
- virtualenv venv --python=python$$ PY_VER; \
21
- source venv/bin/activate; \
21
+ virtualenv venv --python=python$$ PY_VER && \
22
+ source venv/bin/activate && \
22
23
pip install -r requirements-docs.txt;
23
24
24
25
# Catch-all target: route all unknown targets to Sphinx using the new
25
26
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
26
27
% : Makefile
27
- echo $@
28
- @ $(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
28
+ @source venv/bin/activate && \
29
+ $(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
29
30
30
31
.PHONY : all help Makefile env
You can’t perform that action at this time.
0 commit comments