aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen-deps
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-deps')
-rwxr-xr-xscripts/gen-deps5
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