summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-05-06 01:45:04 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-05-06 01:45:04 +0000
commitbefe65e23ce8fa707e1a9ebf53d5287958526ce9 (patch)
tree436f9076625aadd94ef8f49d5f6d34afc6f2d8e5
parenta9ab0ca072d0ebb79bae40a67fa75bc1575af51a (diff)
Add tags to luna88k.
<miod> commit your stuff. <miod> make tags work.
-rw-r--r--sys/arch/luna88k/Makefile24
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>