diff options
author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2020-01-23 13:56:12 +0000 |
---|---|---|
committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2020-01-23 13:56:12 +0000 |
commit | 10cd2843a541433a4923db80349f1983cb7a0be9 (patch) | |
tree | 94ba39bac762e58017e4b57d741a101654bfd5f3 /sys | |
parent | 281cab4d9e27f0d5b1c3ea48cf1bbfad36277d02 (diff) | |
download | src-10cd2843a541433a4923db80349f1983cb7a0be9.tar.gz src-10cd2843a541433a4923db80349f1983cb7a0be9.zip |
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
Notes
Notes:
svn path=/head/; revision=357043
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/kern.post.mk | 3 | ||||
-rw-r--r-- | sys/conf/systags.sh | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 2c58ef33cd98..3f6e26429481 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -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 diff --git a/sys/conf/systags.sh b/sys/conf/systags.sh index f16837b93643..458627a45bf5 100644 --- a/sys/conf/systags.sh +++ b/sys/conf/systags.sh @@ -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; } }; |