1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00

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:
Yoshihiro Takahashi 2020-01-23 13:56:12 +00:00
parent 281cab4d9e
commit 10cd2843a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357043
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;
}
};