Fix kernel-tags target.

- A depend-file is broken up into .depend.*.o files. [1]
  - Fix an assembly file support.

PR:		241746
Submitted by:	leres [1]
MFC after:	1 week
This commit is contained in:
nyan 2020-01-23 13:56:12 +00:00
parent 0c28589a81
commit 1726ab2174
2 changed files with 4 additions and 3 deletions

View File

@ -389,7 +389,8 @@ kernel-cleandepend: .PHONY
rm -f .depend .depend.* ${_ILINKS}
kernel-tags:
@[ -f .depend ] || { echo "you must make depend first"; exit 1; }
@ls .depend.* > /dev/null 2>&1 || \
{ echo "you must make depend first"; exit 1; }
sh $S/conf/systags.sh
kernel-install: .PHONY

View File

@ -39,14 +39,14 @@
rm -f tags tags.tmp tags.cfiles tags.sfiles tags.hfiles
sed -e "s, machine/, ../../include/,g" \
-e 's,[a-z][^/ ]*/\.\./,,g' .depend | awk '{
-e 's,[a-z][^/ ]*/\.\./,,g' .depend.* | awk '{
for (i = 1; i <= NF; ++i) {
t = substr($i, length($i) - 1)
if (t == ".c")
cfiles[$i] = 1;
else if (t == ".h")
hfiles[$i] = 1;
else if (t == ".s")
else if (t == ".s" || t == ".S")
sfiles[$i] = 1;
}
};