aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <[email protected]>2016-11-23 17:59:25 +0100
committerLoïc Hoguin <[email protected]>2016-11-25 19:33:49 +0100
commit5b67a3220b9fcc50a23064b52d3d328ac5e139f7 (patch)
tree1fb2e6ac0a0a815a5d71e8dad3e27ecc90a0f34f /Makefile
parent14b92a1ac83a2c0bc1c98014d65bb90bc2e1efb2 (diff)
downloaderlang.mk-5b67a3220b9fcc50a23064b52d3d328ac5e139f7.tar.gz
erlang.mk-5b67a3220b9fcc50a23064b52d3d328ac5e139f7.tar.bz2
erlang.mk-5b67a3220b9fcc50a23064b52d3d328ac5e139f7.zip
Makefile: Set LC_COLLATE=C when building erlang.mk
When the index files are concatenated, (`index/*` in `build.config`), their order is related to the collation locale used by the shell. By explicitely setting this to the C locale, we make sure that the order is consistent, no matter the user's locale. It is especially useful in teams where users and systems have different locales.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2ddf6fd..7c8d54b 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ ERLANG_MK_VERSION = $(shell git describe --tags --dirty)
.PHONY: all check
all:
+ export LC_COLLATE=C; \
awk 'FNR==1 && NR!=1{print ""}1' $(patsubst %,%.mk,$(BUILD_CONFIG)) \
| sed 's/^ERLANG_MK_VERSION = .*/ERLANG_MK_VERSION = $(ERLANG_MK_VERSION)/' > $(ERLANG_MK)