1 parent a96d735 commit 59648e5Copy full SHA for 59648e5
1 file changed
Makefile
@@ -25,6 +25,9 @@ JOBS = 4
25
26
.PHONY: all
27
all: $(SPHINX_CONF) $(VENV)/bin/activate
28
+ifneq "$(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD)" "$(BRANCH)"
29
+ $(warning "Your ../cpython checkout is on the wrong branch, got $(shell cd $(CPYTHON_CLONE) 2>/dev/null && git describe --contains --all HEAD) expected $(BRANCH)")
30
+endif
31
mkdir -p $(CPYTHON_CLONE)/locales/$(LANGUAGE)/
32
ln -nfs $(shell readlink -f .) $(CPYTHON_CLONE)/locales/$(LANGUAGE)/LC_MESSAGES
33
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) SPHINXOPTS='-qaEW -j$(JOBS) -D locale_dirs=../locales -D language=$(LANGUAGE) -D gettext_compact=0 -D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc=' $(MODE)
0 commit comments