diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-03-14 13:05:49 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-03-21 04:48:31 -0400 |
commit | ed7ab52e273e8fcf61c6e95ec28c392ff9ed4023 (patch) | |
tree | f15515091b8fc3908a32adf3702ae4b3ec13e8e9 /tools/functions.make | |
parent | 977bc698db176c1886b2d716e8ef4d90a45f335e (diff) | |
download | rockbox-ed7ab52e273e8fcf61c6e95ec28c392ff9ed4023.tar.gz rockbox-ed7ab52e273e8fcf61c6e95ec28c392ff9ed4023.zip |
makefiles: Suppress stray backslash warnings with grep 3.8
GNU grep 3.8 warns about "\#" when compiling. The "#" has to be
escaped for Makefiles and shell, but it isn't special to grep so
grep thinks it's an invalid escape sequence.
Change-Id: Ieb2607d42b7daa1939ca0101b915ec0c7afd4298
Diffstat (limited to 'tools/functions.make')
-rw-r--r-- | tools/functions.make | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/functions.make b/tools/functions.make index 518b945320..d9acbba2ba 100644 --- a/tools/functions.make +++ b/tools/functions.make | |||
@@ -15,11 +15,11 @@ | |||
15 | # The sed line is to prepend the directory to all source files | 15 | # The sed line is to prepend the directory to all source files |
16 | 16 | ||
17 | preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) | \ | 17 | preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) | \ |
18 | grep -v '^\#' | grep -v "^ *$$" | \ | 18 | grep -v '^#' | grep -v "^ *$$" | \ |
19 | sed -e 's:^..*:$(dir $(1))&:') | 19 | sed -e 's:^..*:$(dir $(1))&:') |
20 | 20 | ||
21 | preprocess2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \ | 21 | preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \ |
22 | grep -v '^\#' | grep -v "^$$" > $(2) | 22 | grep -v '^#' | grep -v "^$$" > $(2)) |
23 | 23 | ||
24 | asmdefs2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \ | 24 | asmdefs2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \ |
25 | perl -ne 'if(/^_?AD_(\w+):$$/){$$var=$$1}else{/^\W\.(?:word|long)\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $(2) | 25 | perl -ne 'if(/^_?AD_(\w+):$$/){$$var=$$1}else{/^\W\.(?:word|long)\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $(2) |