aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Makefile
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2025-05-24 20:37:44 +0200
committerSamuel Lidén Borell <samuel@kodafritt.se>2025-05-24 20:37:44 +0200
commite96df40510e54b97c028c9999f25c7d412dc3904 (patch)
tree114fd2a91ed8566dfa16ef189fb5fd540e496640 /bootstrap/Makefile
parent625ca7a5b3d49c9bf275a1478a27a9c319ed3784 (diff)
downloadslul-try2-main.tar.gz
slul-try2-main.tar.bz2
slul-try2-main.zip
boostrap: Check for long linesHEADmain
Diffstat (limited to 'bootstrap/Makefile')
-rw-r--r--bootstrap/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/bootstrap/Makefile b/bootstrap/Makefile
index 0509505..b109723 100644
--- a/bootstrap/Makefile
+++ b/bootstrap/Makefile
@@ -111,7 +111,7 @@ $(builddir)/stage2: $(STAGE2_C_SOURCES)
.PHONY: all check check-all check-valgrind check-boundschecked clean outdirs
check: $(builddir)/stage1
$(builddir)/stage1 $(STAGE1_ARGS)
-check-all: check check-valgrind check-boundschecked clang-analyze
+check-all: check check-valgrind check-boundschecked clang-analyze longlines
check-valgrind: $(builddir)/stage1
valgrind --leak-check=yes -q $(builddir)/stage1 $(STAGE1_ARGS)
check-boundschecked: $(builddir)/stage1-boundschecked
@@ -119,6 +119,13 @@ check-boundschecked: $(builddir)/stage1-boundschecked
$(STAGE1_ARGS)
clang-analyze:
clang --analyze $(C_SOURCES)
+longlines:
+ if grep -nE '^.{80,}' $(C_SOURCES) $(C_HEADERS); then \
+ echo "error: Too long lines detected. Maximum is 80 characters" ;\
+ false ;\
+ else \
+ true ;\
+ fi
# Gives a lot of warnings (possibly false positives) and output gets mixed
# up (unless a single file is processed). So not included in check-all.
gcc-analyzer: