diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-06 18:14:30 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-06 18:15:03 +0200 |
| commit | f0eba93472e0afecc57180fc0d638eeef8e6f3c6 (patch) | |
| tree | 13fe81d4dda80e6917f924bb94f47651eccd5a92 /scripts/gen-deps | |
| parent | 513a8d20beeacb3a7fc2c3c140d014f7fb25cd6f (diff) | |
| download | kmi-f0eba93472e0afecc57180fc0d638eeef8e6f3c6.tar.gz kmi-f0eba93472e0afecc57180fc0d638eeef8e6f3c6.zip | |
Added lint rule to Makefile
+ Runs a syntax check on all files of the selected arch
Diffstat (limited to 'scripts/gen-deps')
| -rwxr-xr-x | scripts/gen-deps | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
