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:
parent
281cab4d9e
commit
10cd2843a5
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user