From 5c06c57435ce5726d62fd43d109b120071e1838c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 18 Oct 2020 14:21:26 -0700 Subject: [PATCH] Makefile: add shellcheck target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1735bb1..9110771 100644 --- a/Makefile +++ b/Makefile @@ -328,6 +328,10 @@ check:test_programs scan-build: scan-build --status-bugs make all test_programs +# Run shellcheck on all shell scripts. +shellcheck: + shellcheck scripts/*.sh + help: @echo "Available targets:" @echo "------------------" @@ -350,7 +354,7 @@ realclean: clean FORCE: -.PHONY: all install uninstall test_programs check scan-build help \ +.PHONY: all install uninstall test_programs check scan-build shellcheck help \ clean realclean .DEFAULT_GOAL = all