From dea7b676557d9fcabe617380683bdca34becb3d9 Mon Sep 17 00:00:00 2001 From: Holger Dengler Date: Thu, 19 Apr 2018 19:04:52 +0200 Subject: build: check for tabs in tex-files Tabs in tex-files are not correctly processed, so check for tabs in all tex-files and print a warning about the affected files. Tabs in tex-files will not terminate the build process. Signed-off-by: Holger Dengler --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f3537c8..44e137e 100644 --- a/Makefile +++ b/Makefile @@ -97,6 +97,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' \{\} \;) PHONY += check check: ; @@ -106,6 +107,9 @@ endif ifeq ($(CHECK_SUBCMD),) $(error install required tool: $(BUILD_SUBCMD)) endif +ifneq ($(CHECK_FILES),) + $(warning remove tabs from tex-files: $(CHECK_FILES)) +endif PHONY += menuconfig menuconfig: $(KMCONFIG) -- cgit v1.2.3