Skip to content

Commit 982bce7

Browse files
committed
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.
1 parent aaca3ec commit 982bce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/py.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ HEADER_BUILD = $(BUILD)/genhdr
77
# file containing qstr defs for the core Python bit
88
PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
99

10-
TRANSLATION := en_US
10+
TRANSLATION ?= en_US
1111

1212
# If qstr autogeneration is not disabled we specify the output header
1313
# for all collected qstrings.

0 commit comments

Comments
 (0)