Skip to content

Commit 981450d

Browse files
committed
Try to fix build
1 parent a7d2a28 commit 981450d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ pyvenv.cfg
1010
/_build
1111
*~
1212
lib64
13+
14+
# symlinked from submodule
15+
docs/volto

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
SHELL=bash
44
.DEFAULT_GOAL = all
55

6+
CWD = $(pwd)
7+
68
# You can set these variables from the command line.
79
SPHINXOPTS =
810
SPHINXBUILD = $(realpath bin/sphinx-build)
@@ -35,14 +37,16 @@ build: ## Set up training: Install requirements
3537
bin/pip install -r requirements.txt
3638

3739
bin/python:
38-
python3 -m venv . || virtualenv --clear --python=python3 .
39-
bin/python -m pip install --upgrade pip
40+
cd $(CWD); \
41+
python3 -m venv . || virtualenv --clear --python=python3 .; \
42+
bin/python -m pip install --upgrade pip; \
4043
bin/pip install -r requirements.txt
4144

4245
docs/volto:
4346
# git submodule add [email protected]:plone/volto.git submodules/volto
44-
git submodule init
45-
git submodule update
47+
cd $(CWD); \
48+
git submodule init; \
49+
git submodule update; \
4650
ln -s ../submodules/volto/docs/source ./docs/volto
4751

4852
.PHONY: deps

0 commit comments

Comments
 (0)