summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-11-19 16:23:35 -0600
committerJeff Epler <jepler@gmail.com>2020-11-19 16:23:35 -0600
commit982bce7259a9bbf7493f86258fc3395f31081648 (patch)
treecc57865572149bddfa07fdffe63e384c692c40c3 /py
parentaaca3eccf12d4b6ea6e294af81c8d19ad330be0c (diff)
py.mk: allow translation to be overriden in GNUmakefile
I like to use local makefile overrides, in the file GNUmakefile (or, on case-sensitive systems, makefile) to set compilation choices. However, writing TRANSLATION := de_DE include Makefile did not work, because py.mk would override the TRANSLATION := specified in an earlier part of the makefiles (but not from the commandline). By using ?= instead of := the local makefile override works, but when TRANSLATION is not specified it continues to work as before.
Diffstat (limited to 'py')
-rw-r--r--py/py.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/py.mk b/py/py.mk
index acf5d127b..eeb3b8650 100644
--- a/py/py.mk
+++ b/py/py.mk
@@ -7,7 +7,7 @@ HEADER_BUILD = $(BUILD)/genhdr
# file containing qstr defs for the core Python bit
PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
-TRANSLATION := en_US
+TRANSLATION ?= en_US
# If qstr autogeneration is not disabled we specify the output header
# for all collected qstrings.