make tags work for programs
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 14 May 1990 04:11:05 +0000 (20:11 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 14 May 1990 04:11:05 +0000 (20:11 -0800)
SCCS-vsn: share/mk/bsd.prog.mk 5.13

usr/src/share/mk/bsd.prog.mk

index e3a710a..560a9f7 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)bsd.prog.mk 5.12 (Berkeley) %G%
+#      @(#)bsd.prog.mk 5.13 (Berkeley) %G%
 
 .if exists(${.CURDIR}/../Makefile.inc)
 .include "${.CURDIR}/../Makefile.inc"
 
 .if exists(${.CURDIR}/../Makefile.inc)
 .include "${.CURDIR}/../Makefile.inc"
@@ -142,7 +142,8 @@ lint: ${SRCS} _PROGSUBDIR
 
 .if !target(tags)
 tags: ${SRCS} _PROGSUBDIR
 
 .if !target(tags)
 tags: ${SRCS} _PROGSUBDIR
-       ctags -f ${.CURDIR}/tags ${.ALLSRC}
+       cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC} | \
+           sed "s;\${.CURDIR}/;;" > tags
 .endif
 
 .if !defined(NOMAN)
 .endif
 
 .if !defined(NOMAN)