diff options
-rw-r--r-- | sys/arch/luna88k/Makefile | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/sys/arch/luna88k/Makefile b/sys/arch/luna88k/Makefile index 322260dcc80..c2c9d5b1892 100644 --- a/sys/arch/luna88k/Makefile +++ b/sys/arch/luna88k/Makefile @@ -1,4 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2004/04/21 16:24:28 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2005/05/06 01:45:03 marco Exp $ + +S=${.CURDIR}/../.. +.include "$S/kern/Make.tags.inc" NOPROG= NOMAN= @@ -6,6 +9,25 @@ NOOBJ= SUBDIR= +TLUNA88K= $S/arch/luna88k/tags +SLUNA88K= $S/arch/luna88k/luna88k/*.[ch] \ + $S/arch/luna88k/include/*.h +ALUNA88K= $S/arch/luna88k/luna88k/*.[sS] + +# Directories in which to place luna88k tags links +DLUNA88K= conf luna88k include + +tags: + -ctags -wdtf ${TLUNA88K} ${COMM} ${SLUNA88K} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALUNA88K} | \ + sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ + >> ${TLUNA88K} + sort -o ${TLUNA88K} ${TLUNA88K} + +links: + -for i in ${DLUNA88K}; do \ + cd $$i && rm -f tags; ln -s ${TLUNA88K} tags; done + obj: _SUBDIRUSE .include <bsd.prog.mk> |