| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
# Standalone Makefile for developer tooling (not part of kbuild). |
| 3 |
|
| 4 |
SHELLCHECK := $(shell which shellcheck 2> /dev/null) |
| 5 |
|
| 6 |
SRCS := \ |
| 7 |
klp-build |
| 8 |
|
| 9 |
.DEFAULT_GOAL := help |
| 10 |
.PHONY: help |
| 11 |
help: |
| 12 |
@echo " check - Run shellcheck on $(SRCS)" |
| 13 |
@echo " help - Show this help message" |
| 14 |
|
| 15 |
.PHONY: check |
| 16 |
check: |
| 17 |
ifndef SHELLCHECK |
| 18 |
$(error shellcheck is not installed. Please install it to run checks) |
| 19 |
endif |
| 20 |
@$(SHELLCHECK) $(SHELLCHECK_OPTIONS) $(SRCS) |