summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/Makefile25
1 files changed, 24 insertions, 1 deletions
diff --git a/sys/arch/sgi/Makefile b/sys/arch/sgi/Makefile
index d5d36caecbf..203ec2c8c6f 100644
--- a/sys/arch/sgi/Makefile
+++ b/sys/arch/sgi/Makefile
@@ -1,10 +1,33 @@
-# $OpenBSD: Makefile,v 1.1 2004/08/06 21:32:56 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 2005/05/06 02:35:55 marco Exp $
+
+S=${.CURDIR}/../..
+.include "$S/kern/Make.tags.inc"
SUBDIR= stand
NOPROG= noprog
NOOBJ= noman
+TSGI= $S/arch/sgi/tags
+SSGI= $S/arch/sgi/sgi/*.[ch] \
+ $S/arch/sgi/include/*.h \
+ $S/arch/sgi/pci/*.[ch]
+ASGI= $S/arch/sgi/sgi/*.[sS]
+
+# Directories in which to place sgi tags links
+DSGI= conf sgi include pci
+
+tags:
+ -ctags -wdtf ${TSGI} ${COMM} ${SSGI}
+ egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASGI} | \
+ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+ >> ${TSGI}
+ sort -o ${TSGI} ${TSGI}
+
+links:
+ -for i in ${DSGI}; do \
+ cd $$i && rm -f tags; ln -s ${TSGI} tags; done
+
obj: _SUBDIRUSE
.include <bsd.prog.mk>