3434 @echo " pot Create/Update POT files from source files"
3535 @echo " serve Serve a built documentation on http://localhost:8000"
3636 @echo " spell Check spelling, storing output in $( POSPELL_TMP_DIR) "
37- @echo " progress To compute current progression on the tutorial"
37+ @echo " progress To compute current progression on the tutorial"
3838 @echo " "
3939
4040
@@ -56,9 +56,9 @@ build: setup
5656 -D latex_elements.inputenc= \
5757 -D latex_elements.fontenc=' \
5858 html;
59-
59+
6060 @echo "Success! Open file://$(CPYTHON_WORKDIR)/Doc/build/html/index.html, " \
61- " or run 'make serve' to see them in http://localhost:8000" ;
61+ "or run 'make serve' to see them in http://localhost:8000";
6262
6363
6464# push: push new translation files and Transifex config files to repository,
@@ -99,17 +99,17 @@ tx-config: pot
9999 rm -rf .tx; \
100100 $(VENV ) /bin/sphinx-intl create-txconfig; \
101101 $(VENV ) /bin/sphinx-intl update-txconfig-resources \
102- --transifex-project-name=$(TRANSIFEX_PROJECT ) \
103- --locale-dir . \
104- --pot-dir pot;
105-
102+ --transifex-project-name=$(TRANSIFEX_PROJECT ) \
103+ --locale-dir . \
104+ --pot-dir pot;
105+
106106 cd $(OLDPWD)
107107 mv $(CPYTHON_WORKDIR)/Doc/locales/.tx/config .tx/config
108-
108+
109109 sed -i .tx/config \
110- -e ' /^source_file/d' \
111- -e ' s|<lang>/LC_MESSAGES/||' \
112- -e " s|^file_filter|trans.$( LANGUAGE) |"
110+ -e '/^source_file/d' \
111+ -e 's|<lang>/LC_MESSAGES/||' \
112+ -e "s|^file_filter|trans.$(LANGUAGE)|"
113113
114114
115115# pot: After running "setup" target, run a cpython Makefile's target
@@ -144,7 +144,7 @@ setup: venv
144144 VENVDIR=$(CPYTHON_WORKDIR ) /Doc/venv \
145145 PYTHON=$(PYTHON ) venv; \
146146 fi
147-
147+
148148 # Setup translation files
149149 if ! [ -d $(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/ ]; then \
150150 mkdir -p $(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/; \
@@ -159,9 +159,9 @@ venv:
159159 if [ ! -d $( VENV) ]; then \
160160 $(PYTHON ) -m venv --prompt $(LANGUAGE_TEAM ) $(VENV ) ; \
161161 fi
162-
162+
163163 $(VENV)/bin/python -m pip install -q -r requirements.txt 2> $(VENV)/pip-install.log
164-
164+
165165 if grep -q 'pip install --upgrade pip' $(VENV)/pip-install.log; then \
166166 $(VENV)/bin/pip install -q --upgrade pip; \
167167 fi
0 commit comments