summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-04-26 12:39:25 +0206
committerJohn Ogness <john.ogness@linutronix.de>2019-04-26 12:39:25 +0206
commita25ffd05f44634ddfdfc987f22e3cd3006ab5e1e (patch)
tree011a3e3e719794fc8615bfa2f8cf8322b73f077e
parenta61c0c459cb38fc6ea84912a8f3bcfb23fb6bbbf (diff)
Makefile: use literal strings instead of escaping
Although the escaping was correct, it is ugly and bug prone. Use literal strings if static strings (no variables) are involved. Signed-off-by: John Ogness <john.ogness@linutronix.de>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2319e3c..1ecfc40 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ $(KCONFIG):
CHECK_COMMAND = $(shell command -v $(BUILD_COMMAND) 2> /dev/null)
CHECK_SUBCMD = $(shell command -v $(BUILD_SUBCMD) 2> /dev/null)
-CHECK_FILES = $(shell find $(CURDIR) -name \*\.tex -exec grep -lP '\t' \{\} \;)
+CHECK_FILES = $(shell find $(CURDIR) -name '*.tex' -exec grep -lP '\t' '{}' ';')
PHONY += check
check: ;
@@ -144,7 +144,7 @@ mrproper: clean
PHONY += distclean
distclean: mrproper
$(Q)echo [CLEAN] $@
- $(Q)find -name "tmp*" -exec rm -f {} \;
+ $(Q)find -name 'tmp*' -exec rm -f '{}' ';'
%_defconfig: $(KCONFIG)
$(Q)cp $(DEFCONF_FOLDER)/$@ $(CONFIG_FILE)