diff options
| author | Holger Dengler <dengler@linutronix.de> | 2018-04-19 19:04:52 +0200 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-04-19 22:20:07 +0200 |
| commit | dea7b676557d9fcabe617380683bdca34becb3d9 (patch) | |
| tree | 501a91cd862004daf1e09d1a0a88a9f8e78b4f3d /Makefile | |
| parent | 1da020092c159e01e9f0cfb9112d2f77a2a171ca (diff) | |
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 <dengler@linutronix.de>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
