mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-23 08:59:40 +00:00
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
|
||||
.SUFFIXES:
|
||||
|
||||
# An empty variable to defeat make functions that trim whitespace.
|
||||
[empty] =
|
||||
[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
|
||||
[markup] = ` ~ ! @ \# $$ % ^ & * ( ) - _ = + [ { ] } \ | ; : ' " , < . > / ?
|
||||
[all] = $([0-9]) $([A-Z]) $([a-z]) $([markup])
|
||||
[space] :=
|
||||
[space] +=
|
||||
[space] := $([empty]) $([empty])
|
||||
|
||||
# platform detection
|
||||
ifeq ($(platform),)
|
||||
|
Loading…
Reference in New Issue
Block a user