2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Verify that Makefiles are not named Makefile.inc
8 cd -- "$
(dirname "$0")" > /dev/null 2>&1 || return
12 # shellcheck source=helper_functions.sh
13 .
"${LINTDIR}/helper_functions.sh"
15 # Exit if the code isn't in a git repo
16 if [ "${IN_GIT_TREE}" -eq 0 ]; then
20 MAKELIST
="$(${FIND_FILES} | grep Makefile.inc)"
21 if [ -n "${MAKELIST}" ]; then
22 echo "Error: Makefiles should be Makefile.mk not Makefile.inc"