commit 556109d57f619410be0cc46b3f6043438e06016c
parent 8da5397dcefeb3fb5721217a4e94dc7f5579584d
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Mon, 13 Apr 2026 10:17:04 +0200
build: Avoid error messages in dep target
The mkdep script uses a wildcard to expand to all the c source
files, but the shell expands the wildcard to itself when no
files are found, and this created many errors about trying to
open the file *.c.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/scripts/mkdep b/scripts/mkdep
@@ -11,6 +11,11 @@ tmp=$$.tmp
printf "\n#deps\n"
for i in *.c
do
+ if test "$i" = '*.c'
+ then
+ continue
+ fi
+
file=`basename $i | sed 's/\.c$/.o/'`
dir=`dirname $i`