mirror of https://github.com/bsnes-emu/bsnes.git
GNU Make 4.3 compatibility
* WARNING: Backward-incompatibility! Previously appending using '+=' to an empty variable would result in a value starting with a space. Now the initial space is only added if the variable already contains some value. Similarly, appending an empty string does not add a trailing space. https://lwn.net/Articles/810071/
This commit is contained in:
parent
24503fc922
commit
b9ccb90324
|
@ -2,13 +2,14 @@
|
||||||
MAKEFLAGS := Rr
|
MAKEFLAGS := Rr
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
|
# An empty variable to defeat make functions that trim whitespace.
|
||||||
|
[empty] =
|
||||||
[0-9] = 0 1 2 3 4 5 6 7 8 9
|
[0-9] = 0 1 2 3 4 5 6 7 8 9
|
||||||
[A-Z] = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
[A-Z] = A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
||||||
[a-z] = a b c d e f g h i j k l m n o p q r s t u v w x y z
|
[a-z] = a b c d e f g h i j k l m n o p q r s t u v w x y z
|
||||||
[markup] = ` ~ ! @ \# $$ % ^ & * ( ) - _ = + [ { ] } \ | ; : ' " , < . > / ?
|
[markup] = ` ~ ! @ \# $$ % ^ & * ( ) - _ = + [ { ] } \ | ; : ' " , < . > / ?
|
||||||
[all] = $([0-9]) $([A-Z]) $([a-z]) $([markup])
|
[all] = $([0-9]) $([A-Z]) $([a-z]) $([markup])
|
||||||
[space] :=
|
[space] := $([empty]) $([empty])
|
||||||
[space] +=
|
|
||||||
|
|
||||||
# platform detection
|
# platform detection
|
||||||
ifeq ($(platform),)
|
ifeq ($(platform),)
|
||||||
|
|
Loading…
Reference in New Issue