`make tags' generates per-arch tag files but nothing seems to call the
"links" target which actually points to besaid tag file from the various
subdirectories, i.e. editors in sys/kern/netinet6/ wouldn't be able to
use tags out of the box.
Of course, the directory I was hacking in was somehow missing from the
list, so add it.
The "tags" target works as normal user, "links" requires root privilege
because it writes to /var/db/sys_tags; is that intentional/did I miss
something as to why "links" isn't called?
Index: Makefile
===================================================================
RCS file: /cvs/src/sys/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- Makefile 1 May 2021 16:11:10 -0000 1.53
+++ Makefile 27 Aug 2021 16:58:58 -0000
@@ -9,6 +9,6 @@ SUBDIR= dev/microcode \
arch/riscv64 arch/sparc64
tags:
- cd ${.CURDIR}/kern; make tags
+ cd ${.CURDIR}/kern; make tags links
.include <bsd.subdir.mk>
Index: kern/Makefile
===================================================================
RCS file: /cvs/src/sys/kern/Makefile,v
retrieving revision 1.50
diff -u -p -r1.50 Makefile
--- kern/Makefile 1 May 2021 16:11:16 -0000 1.50
+++ kern/Makefile 27 Aug 2021 17:00:57 -0000
@@ -38,7 +38,7 @@ DGEN= conf \
lib/libkern/arch/${MACHINE_ARCH} \
miscfs miscfs/deadfs miscfs/fifofs \
msdosfs \
- net netinet netmpls \
+ net netinet netinet6 netmpls \
nfs \
scsi \
sys \