diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 02:03:16 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2005-05-06 02:03:16 +0000 |
commit | 0c4da963fece4a47dd4b011d18b59480f7813424 (patch) | |
tree | 62b3ffeba58fe8f3d7b4ece3125ded729aa5d7cb /sys/arch/macppc | |
parent | 92af826c6680a96a149c5f78d86e7e597c76f065 (diff) |
Add tags to macppc.
<miod> commit your stuff.
<miod> make tags work.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/Makefile | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/sys/arch/macppc/Makefile b/sys/arch/macppc/Makefile index 74930488ad6..d2781fa33dd 100644 --- a/sys/arch/macppc/Makefile +++ b/sys/arch/macppc/Makefile @@ -1,4 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2001/09/01 15:28:42 drahn Exp $ +# $OpenBSD: Makefile,v 1.2 2005/05/06 02:03:15 marco Exp $ + +S=${.CURDIR}/../.. +.include "$S/kern/Make.tags.inc" NOPROG= noprog NOMAN= noman @@ -7,6 +10,27 @@ NOMAN= noman SUBDIR= stand .endif +TMACPPC= $S/arch/macppc/tags +SMACPPC= $S/arch/macppc/macppc/*.[ch] \ + $S/arch/macppc/include/*.h \ + $S/arch/macppc/pci/*.[ch] +AMACPPC= $S/arch/macppc/macppc/*.[sS] + +# Directories in which to place macppc tags links +DMACPPC= conf macppc include pci + +tags: + -ctags -wdtf ${TMACPPC} ${COMM} ${SMACPPC} + egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMACPPC} | \ + sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ + >> ${TMACPPC} + sort -o ${TMACPPC} ${TMACPPC} + +links: + -for i in ${DMACPPC}; do \ + cd $$i && rm -f tags; ln -s ${TMACPPC} tags; done + + obj: _SUBDIRUSE .include <bsd.prog.mk> |