Skip to content

Commit 7dcc173

Browse files
authored
Remove po-install target from Makefile (#90)
1 parent d587bfb commit 7dcc173

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

Makefile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ override VENV_DIR := $(shell realpath $(VENV_DIR))
2727
#
2828
#################
2929

30-
.PHONY: build clean help htmlview lint merge po-install pot pull push setup spell tx-config tx-install venv
30+
.PHONY: build clean help htmlview lint merge pot pull push setup spell tx-config tx-install venv
3131

3232
help:
3333
@echo "Please use 'make <target>' where <target> is one of:"
34-
@echo " build Build an local version in html; deps: 'setup' and 'po-install'"
34+
@echo " build Build an local version in html; deps: 'setup'"
3535
@echo " push Commit and push translations; no deps"
3636
@echo " pull Download translations from Transifex; deps: 'tx-config'"
3737
@echo " tx-config Regenerate Transifex config; deps: 'pot' and 'tx-install'"
@@ -51,7 +51,9 @@ help:
5151
# at the moment. For most up-to-date docs, run "tx-config" and "pull"
5252
# before this. If passing SPHINXERRORHANDLING='', warnings will not be
5353
# treated as errors, which is good to skip simple Sphinx syntax mistakes.
54-
build: setup po-install
54+
build: setup
55+
@mkdir -p "$(CPYTHON_DIR)/$(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/"
56+
@cp --parents *.po **/*.po "$(CPYTHON_DIR)/$(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/"
5557
@echo "Building Python $(BRANCH) Documentation in $(LANGUAGE) ..."
5658
@mkdir -p "$(LOGS_DIR)/build"
5759
@$(MAKE) -C $(CPYTHON_DIR)/Doc/ \
@@ -171,14 +173,6 @@ setup: venv
171173
fi
172174

173175

174-
# po-install: Copy the project's PO files into CPython locales directory,
175-
# to make it easier to run targets like build and gettext
176-
po-install:
177-
@echo "Setting up translation files in cpython's Doc ..."
178-
@mkdir -p "$(CPYTHON_DIR)/$(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/"
179-
@cp --parents *.po **/*.po "$(CPYTHON_DIR)/$(LOCALE_DIR)/$(LANGUAGE)/LC_MESSAGES/"
180-
181-
182176
# venv: create a virtual environment which will be used by almost every
183177
# other target of this script. CPython specific packages are installed
184178
# in there specific venv (see 'setup' target).

0 commit comments

Comments
 (0)