# src/test/lint/Makefile -- T11 static + style gate.
#
#   make            run styleLint, asciiCheck, staticGate (fails on new findings)
#   make baseline   regenerate all three baselines from the current tree
#   make style      styleLint only
#   make ascii      asciiCheck only
#   make static     staticGate (cppcheck + -fanalyzer; slow)
#   make cppcheck   staticGate cppcheck pass only

.PHONY: all style ascii static cppcheck baseline

all: style ascii static

style:
	python3 ./styleLint.py

ascii:
	./asciiCheck.sh

static:
	./staticGate.sh

cppcheck:
	./staticGate.sh --cppcheck-only

baseline:
	python3 ./styleLint.py --update-baseline --summary
	./asciiCheck.sh --update
	./staticGate.sh --update
