summaryrefslogtreecommitdiffstats
path: root/core/config.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-10-03 11:36:27 -0700
committerYing Wang <wangying@google.com>2014-10-03 11:36:27 -0700
commit58a5db35a663b3b08ae973fe79269032aee27f63 (patch)
tree82e4bae0395d0e104ad17f6d4ac95fb1d662eaca /core/config.mk
parent5e0dbe0c3769031b4785ef54a89554cd5c75cba7 (diff)
downloadbuild-58a5db35a663b3b08ae973fe79269032aee27f63.zip
build-58a5db35a663b3b08ae973fe79269032aee27f63.tar.gz
build-58a5db35a663b3b08ae973fe79269032aee27f63.tar.bz2
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
Diffstat (limited to 'core/config.mk')
-rw-r--r--core/config.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/config.mk b/core/config.mk
index 5c314d8..bfa5610 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -18,6 +18,14 @@ endif
empty :=
space := $(empty) $(empty)
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
# only has an effect on python 2.6 and above.