From 4b782e25efe0f45523724b015dd6bed19f336c5a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 24 Mar 2023 19:22:04 +0000 Subject: [PATCH] make: add shellcheck target Signed-off-by: Emil Velikov --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c722c20..2cf655a 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,10 @@ check: all @for f in $(BINPROGS); do bash -O extglob -n $$f; done @r=0; for t in test/test_*; do $(BASH) $$t || { echo $$t fail; r=1; }; done; exit $$r +shellcheck: $(BINPROGS) + shellcheck -W 99 --color $(BINPROGS) + shellcheck -W 99 --color -x test/test_* + install: all install -dm755 $(DESTDIR)$(PREFIX)/bin install -m755 $(BINPROGS) $(DESTDIR)$(PREFIX)/bin @@ -47,4 +51,4 @@ install: all install -Dm644 $$manfile -t $(DESTDIR)$(PREFIX)/share/man/man$${manfile##*.}; \ done; -.PHONY: all man clean check install +.PHONY: all man clean check shellcheck install