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