Add two useful character constants.
You need those constant variables when you want to insert newline or backslash at the end of a macro. Change-Id: I3fe96580d7a4ebc9d013afe6dd4ec8f40f49c724
This commit is contained in:
@@ -18,6 +18,14 @@ endif
|
|||||||
empty :=
|
empty :=
|
||||||
space := $(empty) $(empty)
|
space := $(empty) $(empty)
|
||||||
comma := ,
|
comma := ,
|
||||||
|
# Note that make will eat the newline just before endef.
|
||||||
|
define newline
|
||||||
|
|
||||||
|
|
||||||
|
endef
|
||||||
|
# Unfortunately you can't simply define backslash as \ or \\.
|
||||||
|
backslash := \a
|
||||||
|
backslash := $(patsubst %a,%,$(backslash))
|
||||||
|
|
||||||
# Tell python not to spam the source tree with .pyc files. This
|
# Tell python not to spam the source tree with .pyc files. This
|
||||||
# only has an effect on python 2.6 and above.
|
# only has an effect on python 2.6 and above.
|
||||||
|
Reference in New Issue
Block a user