From f0eba93472e0afecc57180fc0d638eeef8e6f3c6 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 6 Jan 2022 18:14:30 +0200 Subject: Added lint rule to Makefile + Runs a syntax check on all files of the selected arch --- scripts/gen-deps | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/gen-deps') diff --git a/scripts/gen-deps b/scripts/gen-deps index ee64022..bdc1626 100755 --- a/scripts/gen-deps +++ b/scripts/gen-deps @@ -1,6 +1,7 @@ #!/bin/sh gencommon () { + lint="build/${s%.*}${1}.l" dep="build/${s%.*}${1}.d" obj="build/${s%.*}${1}" @@ -9,7 +10,6 @@ gencommon () { echo "${dep}:" >> deps.mk echo "include ${dep}" >> deps.mk echo "${obj}: ${s}" >> deps.mk - } genlink () { @@ -21,6 +21,9 @@ genlink () { genrule () { gencommon "${1}" echo " \$(COMPILE) -c \$< -o \$@" >> deps.mk + + echo "${lint}: ${s}" >> deps.mk + echo " \$(LINT) -c \$<" >> deps.mk } case "${1}" in -- cgit v1.3