summaryrefslogtreecommitdiff
path: root/scripts/livepatch/Makefile
blob: 17b590213740caea5a7ec7da2add5c75ec6ab42b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# SPDX-License-Identifier: GPL-2.0
# Standalone Makefile for developer tooling (not part of kbuild).

SHELLCHECK := $(shell which shellcheck 2> /dev/null)

SRCS := \
  klp-build

.DEFAULT_GOAL := help
.PHONY: help
help:
	@echo "  check      - Run shellcheck on $(SRCS)"
	@echo "  help       - Show this help message"

.PHONY: check
check:
ifndef SHELLCHECK
	$(error shellcheck is not installed. Please install it to run checks)
endif
	@$(SHELLCHECK) $(SHELLCHECK_OPTIONS) $(SRCS)