Skip to content

Commit

Permalink
GNU Make 4.3 compatibility
Browse files Browse the repository at this point in the history
* 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/
  • Loading branch information
Alcaro authored and Screwtapello committed Sep 22, 2020
1 parent 6673a1c commit 2b969ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nall/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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),)
Expand Down

0 comments on commit 2b969ec

Please sign in to comment.