diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 02:35:56 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 02:35:56 +0000 |
commit | c69fb102008affe66194ac388af12070a1be2784 (patch) | |
tree | b1e0a53b4acdfd4920d50eb86fb648a0279bae71 /sys/arch | |
parent | 1d683fbc7db5c4c2b5264a3eb1e62ac91dd03734 (diff) |
Add tags to sgi.
<miod> commit your stuff.
<miod> make tags work.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sgi/Makefile | 25 |
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> |