aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 01ec0ab..e086ae1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
.PHONY: test
-test: git-validation unit-test
+test: git-validation shellcheck unit-test
.PHONY: unit-test
unit-test:
@@ -13,3 +13,11 @@ ifeq (, $(shell which git-validation 2> /dev/null))
else
@git-validation -q -range da5b6722c940..HEAD -travis-pr-only=false
endif
+
+.PHONY: shellcheck
+shellcheck:
+ifeq (, $(shell which shellcheck 2> /dev/null))
+ @echo "You don't have 'shellcheck' installed, consider installing it (see the CONTRIBUTING.org file)."
+else
+ @shellcheck g.sh
+endif